<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Peter's blog</title>
	<atom:link href="http://blog.peter.skarpetis.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peter.skarpetis.com</link>
	<description></description>
	<pubDate>Mon, 12 May 2008 11:09:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on Getting a handle on usbprint.sys by David</title>
		<link>http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9390</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sun, 11 May 2008 21:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9390</guid>
		<description>First, thank the blog owner for show us some of his great pieces!

To Dmitri,
Most printer don't required reverse data transfer, thus readfile can fail to get output from printer.
Most printer comunicated with printer using ieee-1284 device ID ( IOCTL_USBPRINT_GET_1284_ID) data pipe only. Bulk transfer from printer to PC is not nesasary.

To Brandon,
In VB6, I do in this ways.

'HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_4348&#38;Pid_5584#5&#38;13b4f648&#38;0&#38;1#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}

Public Type guid: Data(3) As Long: End Type 'A GUID is 16 bytes long

Public Sub usbPrintGuid()
'{28d78fad-5a12-11d1-ae5b-0000f803a8c2}
    GUID_DEVINTERFACE_USBPRINT.Data(0) = &#38;H28D78FAD
    GUID_DEVINTERFACE_USBPRINT.Data(1) = &#38;H11D15A12
    GUID_DEVINTERFACE_USBPRINT.Data(2) = &#38;H5BAE
    GUID_DEVINTERFACE_USBPRINT.Data(3) = &#38;HC2A803F8
End Sub

 useGuid = GUID_DEVINTERFACE_USBPRINT
 PnPHandle&#38; = SetupDiGetClassDevs(useGuid.Data(0), 0, 0, &#38;H12)
  If (PnPHandle&#38; = -1) Then ErrorExit ("Could not attach to PnP node")
  
  Do While SetupDiEnumDeviceInterfaces(PnPHandle&#38;, 0, useGuid.Data(0), HidEntry&#38;, DeviceInterfaceData.cbsize)</description>
		<content:encoded><![CDATA[<p>First, thank the blog owner for show us some of his great pieces!</p>
<p>To Dmitri,<br />
Most printer don&#8217;t required reverse data transfer, thus readfile can fail to get output from printer.<br />
Most printer comunicated with printer using ieee-1284 device ID ( IOCTL_USBPRINT_GET_1284_ID) data pipe only. Bulk transfer from printer to PC is not nesasary.</p>
<p>To Brandon,<br />
In VB6, I do in this ways.</p>
<p>&#8216;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_4348&amp;Pid_5584#5&amp;13b4f648&amp;0&amp;1#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}</p>
<p>Public Type guid: Data(3) As Long: End Type &#8216;A GUID is 16 bytes long</p>
<p>Public Sub usbPrintGuid()<br />
&#8216;{28d78fad-5a12-11d1-ae5b-0000f803a8c2}<br />
    GUID_DEVINTERFACE_USBPRINT.Data(0) = &amp;H28D78FAD<br />
    GUID_DEVINTERFACE_USBPRINT.Data(1) = &amp;H11D15A12<br />
    GUID_DEVINTERFACE_USBPRINT.Data(2) = &amp;H5BAE<br />
    GUID_DEVINTERFACE_USBPRINT.Data(3) = &amp;HC2A803F8<br />
End Sub</p>
<p> useGuid = GUID_DEVINTERFACE_USBPRINT<br />
 PnPHandle&amp; = SetupDiGetClassDevs(useGuid.Data(0), 0, 0, &amp;H12)<br />
  If (PnPHandle&amp; = -1) Then ErrorExit (&#8221;Could not attach to PnP node&#8221;)</p>
<p>  Do While SetupDiEnumDeviceInterfaces(PnPHandle&amp;, 0, useGuid.Data(0), HidEntry&amp;, DeviceInterfaceData.cbsize)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting a handle on usbprint.sys by Brandon</title>
		<link>http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9388</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 08 May 2008 13:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9388</guid>
		<description>Does anyone have this code for VB.NET 2005?

I can't find anything in the registry about GUIDs or the number you found either...</description>
		<content:encoded><![CDATA[<p>Does anyone have this code for VB.NET 2005?</p>
<p>I can&#8217;t find anything in the registry about GUIDs or the number you found either&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Manly Dam mountain biking track by aris</title>
		<link>http://blog.peter.skarpetis.com/archives/2008/05/04/manly-dam-mountain-biking-track/#comment-9382</link>
		<dc:creator>aris</dc:creator>
		<pubDate>Sun, 04 May 2008 19:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2008/05/04/manly-dam-mountain-biking-track/#comment-9382</guid>
		<description>Great ride indeed, I just remembered how good it was so long as it hadn't rained the day before. Nice GPS btw ;)</description>
		<content:encoded><![CDATA[<p>Great ride indeed, I just remembered how good it was so long as it hadn&#8217;t rained the day before. Nice GPS btw <img src='http://blog.peter.skarpetis.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My new bitching mythtv box by Peter Skarpetis</title>
		<link>http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9377</link>
		<dc:creator>Peter Skarpetis</dc:creator>
		<pubDate>Sat, 19 Apr 2008 05:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9377</guid>
		<description>No idea I am afraid. Google is your friend for that one :)</description>
		<content:encoded><![CDATA[<p>No idea I am afraid. Google is your friend for that one <img src='http://blog.peter.skarpetis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My new bitching mythtv box by kc</title>
		<link>http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9376</link>
		<dc:creator>kc</dc:creator>
		<pubDate>Sat, 19 Apr 2008 05:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9376</guid>
		<description>Thanks.  Any suggestions on how to get the keyboard to work?</description>
		<content:encoded><![CDATA[<p>Thanks.  Any suggestions on how to get the keyboard to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My new bitching mythtv box by Peter Skarpetis</title>
		<link>http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9375</link>
		<dc:creator>Peter Skarpetis</dc:creator>
		<pubDate>Thu, 17 Apr 2008 21:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9375</guid>
		<description>You are quite correct. irexec is the way to go. Fist you would need a cmdline program that can control / send commands to the device you wish to control. The you could create a config file for lircrc which uses irexec to send commands to the device.  

A quick search of Google shows many pages with this particular page seeming to describe what you are trying to do.

http://d1g1t.net/tags/irexec/</description>
		<content:encoded><![CDATA[<p>You are quite correct. irexec is the way to go. Fist you would need a cmdline program that can control / send commands to the device you wish to control. The you could create a config file for lircrc which uses irexec to send commands to the device.  </p>
<p>A quick search of Google shows many pages with this particular page seeming to describe what you are trying to do.</p>
<p><a href="http://d1g1t.net/tags/irexec/" rel="nofollow">http://d1g1t.net/tags/irexec/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My new bitching mythtv box by kc</title>
		<link>http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9374</link>
		<dc:creator>kc</dc:creator>
		<pubDate>Thu, 17 Apr 2008 19:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2006/11/06/my-new-bitching-mythtv-box/#comment-9374</guid>
		<description>Peter,

Your tutorial really helped me out, thanks a lot!  I am now able to use the remote.  
How would you go about controlling an external receiver (e.g. dish) from mythtv with the irserver?  The documentation on the irtrans website mentions the use of irexec as an LIRC client that can be usefull but I have no real idea on how to get started.
I was also trying to use the MCE-kbd but apparently it is not supported in linux.  Any ideas??

Thanks</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Your tutorial really helped me out, thanks a lot!  I am now able to use the remote.<br />
How would you go about controlling an external receiver (e.g. dish) from mythtv with the irserver?  The documentation on the irtrans website mentions the use of irexec as an LIRC client that can be usefull but I have no real idea on how to get started.<br />
I was also trying to use the MCE-kbd but apparently it is not supported in linux.  Any ideas??</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting a handle on usbprint.sys by Danny Lauwers</title>
		<link>http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9339</link>
		<dc:creator>Danny Lauwers</dc:creator>
		<pubDate>Wed, 20 Feb 2008 23:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9339</guid>
		<description>Hello,

Does anybody has this code working under .NET ? Is it possible to send some source code to start this USB stuff under .NET ?

I need to get the real-time status of an USB connected HP Laserjet to see if it is Out-Of-Paper. Reading about the GET_PORT_STATUS from the USBPrint specifications this would do the job.

Do you guys think it is possible ?

Tried to compile the original Code under VS2008 (VC++ Project) but I get lot's of errors. I guess I first need to install the latest SDK's and DDK's for the missing include files.

Any help is appriciated !

Thanks
Danny</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Does anybody has this code working under .NET ? Is it possible to send some source code to start this USB stuff under .NET ?</p>
<p>I need to get the real-time status of an USB connected HP Laserjet to see if it is Out-Of-Paper. Reading about the GET_PORT_STATUS from the USBPrint specifications this would do the job.</p>
<p>Do you guys think it is possible ?</p>
<p>Tried to compile the original Code under VS2008 (VC++ Project) but I get lot&#8217;s of errors. I guess I first need to install the latest SDK&#8217;s and DDK&#8217;s for the missing include files.</p>
<p>Any help is appriciated !</p>
<p>Thanks<br />
Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting a handle on usbprint.sys by Ramgopal Kota</title>
		<link>http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9291</link>
		<dc:creator>Ramgopal Kota</dc:creator>
		<pubDate>Mon, 07 Jan 2008 10:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9291</guid>
		<description>Hi,
I am new to Windows driver programming.I am trying to solve a problem we are facing. We have a tool which works with Parallel Port ( LPT1/2/3) to be precise.
Our newer Desktops does not have LPT ports.Hence we thought of using USB to Parallel port cable, but they dont seem to work.
We want to add a ECP port (Dummy One say LPT1) and PIPE the USB Driver so that the data flows out of USB ?
Is it possible ? Is there any soultions for my problem ?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am new to Windows driver programming.I am trying to solve a problem we are facing. We have a tool which works with Parallel Port ( LPT1/2/3) to be precise.<br />
Our newer Desktops does not have LPT ports.Hence we thought of using USB to Parallel port cable, but they dont seem to work.<br />
We want to add a ECP port (Dummy One say LPT1) and PIPE the USB Driver so that the data flows out of USB ?<br />
Is it possible ? Is there any soultions for my problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting a handle on usbprint.sys by Yogish</title>
		<link>http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9266</link>
		<dc:creator>Yogish</dc:creator>
		<pubDate>Wed, 21 Nov 2007 09:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/#comment-9266</guid>
		<description>Hi Peter,
I am new to the USB programming. I tried the following program with a usb connected mobile phone. But as in the previous discusion the device is not recognised in the device manager. In this situation can u kindly help me how to resolve this.

	while(SetupDiEnumDeviceInterfaces(hInfo, 0, (struct _GUID *)&#38;USBIODS_GUID, devicecount, &#38;Interface_Info)) 
	Here the control is not entering inside the while loop.
The PC does not have any drivers for mobile. In this condition , what changes i need to do for establishing the communication. Kindly help as this is a critical issue i am facing. 
Thankyou in advance</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
I am new to the USB programming. I tried the following program with a usb connected mobile phone. But as in the previous discusion the device is not recognised in the device manager. In this situation can u kindly help me how to resolve this.</p>
<p>	while(SetupDiEnumDeviceInterfaces(hInfo, 0, (struct _GUID *)&amp;USBIODS_GUID, devicecount, &amp;Interface_Info))<br />
	Here the control is not entering inside the while loop.<br />
The PC does not have any drivers for mobile. In this condition , what changes i need to do for establishing the communication. Kindly help as this is a critical issue i am facing.<br />
Thankyou in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>
