Thanks Charles.&nbsp; It works that both interrupt_write() and interrupt_read() returns &quot;SUCCESS&quot;.<br>However, the char * returned by interrupt_read() is emptied.<br><br>I am writing a series of bytes and supposedly, the device will response with a 2-byte size message.&nbsp; When I print out the message, that is nothing.&nbsp; 
<br><br>And BTW, in lsusb, the MaxPacketSize is 8 bytes.&nbsp; Does that mean I cannot write more than 8 bytes (let say 12 bytes) at a time?&nbsp; And if I need to write more than 8 bytes (let say 12 bytes), do I issue interrupt_write() 2 times (8 bytes + 4 bytes) in a row?
<br><br><br><br><div><span class="gmail_quote">On 9/27/06, <b class="gmail_sendername">Charles Lepple</b> &lt;<a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Mark S. Townsley wrote:<br>&gt; Hi:<br>&gt;<br>&gt; My device has 2 endpoints (of transfer type Interrupt), one is in (0x81 EP<br>&gt; 1<br>&gt; IN) and the other is out (0x02 EP 2 OUT).<br><br>I think you probably want to read from 0x81 and write to 0x02.
<br><br>--<br>Charles Lepple<br><a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a><br><br><br>_______________________________________________<br>libhid-discuss mailing list<br><a href="mailto:libhid-discuss@lists.alioth.debian.org">
libhid-discuss@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss">http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss</a><br></blockquote></div><br>