<?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/7913" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-03-24T21:29:33+02:00</updated>

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

		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2013-03-24T21:29:33+02:00</updated>

		<published>2013-03-24T21:29:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=25004#p25004</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=25004#p25004"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=25004#p25004"><![CDATA[
<blockquote><div><cite>fish47 wrote:</cite>I have found a better solution. In short, the way to achieve my goal is to decalre two devices in hid descriptor: one for keyboard/mouse, one for a hid-data device. LibUsb can claim the device(s) even so. It works fine under Linux or Windows platform. If you want more detail, the website below is worth reading.<br /><!-- m --><a class="postlink" href="http://www.frank-zhao.com/cache/hid_tutorial_1.php">http://www.frank-zhao.com/cache/hid_tutorial_1.php</a><!-- m --></div></blockquote><br /><br />I just tried a keyboard and another generic hid device, and it works fine! I had to use reportID for both devices. Thanks for the information. <br /><br />I wonder whether there is a way to use different VID/PID and device name for the two device, which are all defined in usbconfig.h. According to V-USB, they should have different PID, since they use different drivers.<br /><br />-Xiangrui<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Sun Mar 24, 2013 9:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bob]]></name></author>
		<updated>2013-03-21T17:50:24+02:00</updated>

		<published>2013-03-21T17:50:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24990#p24990</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24990#p24990"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24990#p24990"><![CDATA[
I haven't tried libusbx but can assure you that the older libusb works fine with keyboards and mice when doing control transfers.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=279">Bob</a> — Thu Mar 21, 2013 5:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fish47]]></name></author>
		<updated>2013-03-17T08:26:03+02:00</updated>

		<published>2013-03-17T08:26:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24955#p24955</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24955#p24955"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24955#p24955"><![CDATA[
<blockquote><div><cite>Bob wrote:</cite>That means you must install libusb drivers on the target.<br />If you're going to do that, there is no need for a composite device descriptor, libusb can access mice and keyboards without any tricks.<br />The method I described doesn't require any drivers or libusb to be installed.<br />However, using libusb means it will pretty much work on any platform which is always a good thing <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /></div></blockquote><br />You can use the public pid/vid that v-usb provides. It can be driven on win7 and ubuntu12.04. According to *libusbx* wiki, keyboard and mouse is not accessible.<br /><!-- m --><a class="postlink" href="https://github.com/libusbx/libusbx/wiki/Windows-Backend#about">https://github.com/libusbx/libusbx/wiki ... kend#about</a><!-- m --><br />BTW, using *libusbx* is very convenient, because it provide win32 static/dynamic library dist. You can also compile it on Linux too.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=11304">fish47</a> — Sun Mar 17, 2013 8:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bob]]></name></author>
		<updated>2013-03-14T17:31:00+02:00</updated>

		<published>2013-03-14T17:31:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24931#p24931</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24931#p24931"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24931#p24931"><![CDATA[
That means you must install libusb drivers on the target.<br />If you're going to do that, there is no need for a composite device descriptor, libusb can access mice and keyboards without any tricks.<br />The method I described doesn't require any drivers or libusb to be installed.<br />However, using libusb means it will pretty much work on any platform which is always a good thing <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=279">Bob</a> — Thu Mar 14, 2013 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fish47]]></name></author>
		<updated>2013-03-13T02:59:04+02:00</updated>

		<published>2013-03-13T02:59:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24922#p24922</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24922#p24922"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24922#p24922"><![CDATA[
I have found a better solution. In short, the way to achieve my goal is to decalre two devices in hid descriptor: one for keyboard/mouse, one for a hid-data device. LibUsb can claim the device(s) even so. It works fine under Linux or Windows platform. If you want more detail, the website below is worth reading.<br /><!-- m --><a class="postlink" href="http://www.frank-zhao.com/cache/hid_tutorial_1.php">http://www.frank-zhao.com/cache/hid_tutorial_1.php</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=11304">fish47</a> — Wed Mar 13, 2013 2:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bob]]></name></author>
		<updated>2012-12-16T14:07:19+02:00</updated>

		<published>2012-12-16T14:07:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24161#p24161</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24161#p24161"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24161#p24161"><![CDATA[
In Windows, it's possible to send and receive data to a keyboard or mouse using feature reports.<br />The trick is to open the device as ACCESS_TYPE_NONE otherwise it will fail as it's locked and owned by windows.<br /><br />handle = CreateFile(deviceDetails-&gt;DevicePath, ACCESS_TYPE_NONE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, openFlag, NULL);<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=279">Bob</a> — Sun Dec 16, 2012 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fish47]]></name></author>
		<updated>2012-12-13T09:51:00+02:00</updated>

		<published>2012-12-13T09:51:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24105#p24105</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24105#p24105"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24105#p24105"><![CDATA[
<blockquote><div><cite>xiangrui wrote:</cite>For Windows, it is unlikely. The system will claim full control of the USB HID keyboard. For Linux, I am not sure, but probably you can do it.<br /><br />-Xiangrui</div></blockquote><br /><br />Thanks for your tips.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=11304">fish47</a> — Thu Dec 13, 2012 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-12-12T18:07:28+02:00</updated>

		<published>2012-12-12T18:07:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24091#p24091</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24091#p24091"/>
		<title type="html"><![CDATA[Re: Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24091#p24091"><![CDATA[
For Windows, it is unlikely. The system will claim full control of the USB HID keyboard. For Linux, I am not sure, but probably you can do it.<br /><br />-Xiangrui<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Wed Dec 12, 2012 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fish47]]></name></author>
		<updated>2012-12-11T06:45:46+02:00</updated>

		<published>2012-12-11T06:45:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24053#p24053</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24053#p24053"/>
		<title type="html"><![CDATA[Is it possible to do extra comm with usb-hid keyboard?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7913&amp;p=24053#p24053"><![CDATA[
Hello everyone, rencently I got a interesting idea --- making a customizable keyboard, but I came accross some problems I can't figure out. I hope you can help me. Thanks a lot.<br />As the similar projects which have been done, making a usb-hid keyboard is not a difficult task.<br />I want to customize the keycodes of the buttons via PC. Using IR or UART is ok, but they aren't so convenient as the previous solution.<br />Since libusb can do direct communication with usb device, even the device isn't driven. But is it poosible to do so while the device has been recognized as usb-hid keyboard ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=11304">fish47</a> — Tue Dec 11, 2012 6:45 am</p><hr />
]]></content>
	</entry>
	</feed>
