<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:$B%a%$%j%*(B
}
--></style>
</head>
<body class='hmmessage'>
$B9B^<MM(B<BR>
$B$9$_$^$;$s!#:FEY<ALd$5$;$F2<$5$$!#(B<BR>$B%+!<%M%k$N(BUP$B%G!<%H$O$&$^$/$$$C$?$N$G$9$,(B<BR>$B4N?4$N(BUSB,HID$B$X%"%/%;%9$,$&$^$/$$$-$^$;$s(B<BR>$B!J%-!<%\!<%I$N%5%s%W%k$O@5>o$KF0$$$F$^$9!K(B<BR>
$BFbMF$H$7$^$7$F$O(B4byte$B$NL?Na%3!<%I$rAw?.$7$F(B18byte$B$,JV$C$F$/$k;EMM$G$9!#(B<BR>$B$=$l$GAw?.!"<u?.$N(Bresult$B$N?t$O$H$b$K(B4byte,18byte$B$H@5$7$$$N$G$9$,(B<BR>$B%P%C%U%!$KF~$C$F$/$kCM$,@5$7$/$J$$$N$G$9!#(B<BR>
$B%"%/%;%9J}K!$O(B<BR>dev->config->interface->altsetting->bInterfaceClass=3<BR>$B$+$i(BHID$B$HH=CG$7$F(B<BR>$BAw?.;~!'(B<BR>char msg1[]={0x00,0x13,0x01,0x00};<BR>result=usb_interrupt_write(dh, 1,msg1, sizeof(msg1), l_Timeout);<BR>if(result<0){printf ("_Control message error. (%s)\n", usb_strerror());}<BR>printf("Sresult1=%d \n",result);//4<BR>
$B<u?.;~!'(B<BR>char readbuf[18];<BR>memset( readbuf, 0, 18 );<BR>printf("ep=%d \n",ep);//129<BR>result=usb_interrupt_read(dh, ep, readbuf, sizeof(readbuf), l_Timeout);<BR>printf("result=%d \n",result);//18<BR>if(result<0){printf ("interrupt read error. (%s)\n", usb_strerror());}<BR>l_RBLen = (int)sizeof(readbuf);<BR>for(i=0;i<l_RBLen;i++)<BR>{<BR>printf("_readbuf[%d]=%d \n",i,readbuf[i]);<BR>}<BR>
$B$G$9!#(B<BR>$B$=$NB>$G%P%k%/$G$NFI=q$d(Busb_get_string_simple$BEy!9?'!9;n$7$F$O$$$k$N$G$9$,!#!#!#(B<BR>
Windows$B$G$N(B<BR>Private Declare Sub CopyMem Lib "kernel32" Alias "RtlMoveMemory" (pTo As Any, uFrom As Any, ByVal lSize As Long)<BR>Private Declare Function RtlMoveMemory Lib "kernel32" (dest As Any, src As Any, ByVal Count As Long) As Long<BR>$B$G$NJ}K!$&$^$/$$$/$h$&$G$9!#(B<BR>
$B$"$H2<5-$N2U=j$b$465<xD:$1$k$H=u$+$j$^$9!#(B<BR>libusb$B$N%P!<%8%g%s$,8E$$$N$+$H;W$$(Blibusb-0.1-4_0.1.12-5_arm.deb$B$+$i(B<BR>libusb-0.1-4_0.1.12-13_arm.deb$B$X%P!<%8%g%s%"%C%W$r(B<BR>$B9T$$$?$$$N$G$9$,2<5-$N%(%i!<$G$&$^$/(BUpDate$B$,$G$-$^$;$s(B<BR>
$B<B9T%3%^%s%I!'(B<BR>dpkg-cross -a arm -b libusb-0.1-4_0.1.12-13_arm.deb libusb-dev_0.1.12-13_arm.deb<BR>dpkg -i libusb-0.1-4-arm-cross_0.1.12-13_all.deb libusb-dev-arm-cross_0.1.12-13_all.deb<BR>
$B7k2L!'(B<BR>//----------------------------------------------------------------------------------------<BR><A href="mailto:root@atde:/home/atmark">root@atde:/home/atmark</A># dpkg -i libusb-0.1-4-arm-cross_0.1.12-13_all.deb libusb-dev-arm-cross_0.1.12-13_all.deb<BR>($B%G!<%?%Y!<%9$rFI$_9~$s$G$$$^$9(B ... $B8=:_(B 80661 $B8D$N%U%!%$%k$H%G%#%l%/%H%j$,%$%s%9%H!<%k$5$l$F$$$^$9!#(B)<BR>libusb-0.1-4-arm-cross 2:0.1.12-5 $B$r(B (libusb-0.1-4-arm-cross_0.1.12-13_all.deb $B$G(B) $BCV49$9$k$?$a$N=`Hw$r$7$F$$$^$9(B ...<BR>libusb-0.1-4-arm-cross $B$rE83+$7!"CV49$7$F$$$^$9(B...<BR>libusb-dev-arm-cross 2:0.1.12-5 $B$r(B (libusb-dev-arm-cross_0.1.12-13_all.deb $B$G(B) $BCV49$9$k$?$a$N=`Hw$r$7$F$$$^$9(B ...<BR>libusb-dev-arm-cross $B$rE83+$7!"CV49$7$F$$$^$9(B...<BR>dpkg: $B0MB84X78$NLdBj$K$h$j(B libusb-0.1-4-arm-cross $B$N@_Dj$,$G$-$^$;$s(B:<BR> libusb-0.1-4-arm-cross $B$O0J2<$K0MB8(B (depends) $B$7$^$9(B: libc6-arm-cross (>= 2.7-1) ...$B$7$+$7(B:<BR>$B%7%9%F%`>e$N(B libc6-arm-cross $B$N%P!<%8%g%s(B $B$O(B 2.3.6.ds1-13etch2 $B$G$9!#(B<BR>dpkg: libusb-0.1-4-arm-cross $B$N=hM}Cf$K%(%i!<$,H/@8$7$^$7$?(B (--install):<BR> $B0MB84X78$NLdBj(B - $B@_Dj$r8+Aw$j$^$9(B<BR>dpkg: $B0MB84X78$NLdBj$K$h$j(B libusb-dev-arm-cross $B$N@_Dj$,$G$-$^$;$s(B:<BR> libusb-dev-arm-cross $B$O0J2<$K0MB8(B (depends) $B$7$^$9(B: libusb-0.1-4-arm-cross (= 2:0.1.12-13) ...$B$7$+$7(B:<BR>  $B%Q%C%1!<%8(B libusb-0.1-4-arm-cross $B$O$^$@@_Dj$5$l$F$$$^$;$s!#(B<BR> libusb-dev-arm-cross $B$O0J2<$K0MB8(B (depends) $B$7$^$9(B: libusb-0.1-4-arm-dcv1 ...$B$7$+$7(B:<BR>  $B%Q%C%1!<%8(B libusb-0.1-4-arm-dcv1 $B$O$^$@%$%s%9%H!<%k$5$l$F$$$^$;$s!#(B<BR>  $B%Q%C%1!<%8(B libusb-0.1-4-arm-cross $B$O(B libusb-0.1-4-arm-dcv1 $B$rDs6!$7$F$$$^$9$,!"$^$@@_Dj$5$l$F$$$^$;$s!#(B<BR>dpkg: libusb-dev-arm-cross $B$N=hM}Cf$K%(%i!<$,H/@8$7$^$7$?(B (--install):<BR> $B0MB84X78$NLdBj(B - $B@_Dj$r8+Aw$j$^$9(B<BR>$B0J2<$N%Q%C%1!<%8$N=hM}Cf$K%(%i!<$,H/@8$7$^$7$?(B:<BR> libusb-0.1-4-arm-cross<BR> libusb-dev-arm-cross<BR>//----------------------------------------------------------------------------------------<BR>
<BR>ATDE$B$N%P!<%8%g%s$O(Batde2-20090403$B$G$9!#(B<BR>dmeg$B$H(BUSB$B$N>pJs$O%U%!%$%k$KE:IU$7$F$$$^$9!#(B<BR>
$B%Y%s%@!<(BID,$B%W%m%@%/%H(BID$B$O(B<BR>idVendor=1234, idProduct=0001<BR>$B$G$9!#(B<BR>
<BR>$B%R%s%H$d!"M=A[$H$+$G$b$h$$$N$G59$7$/$*4j$$CW$7$^$9!#(B<BR>
$B!?EgB^(B<BR>
 <BR>                                          </body>
</html>