linux usb Ææ¹ÖµÄÎÊÌâ
struct usb_bus *busses;
struct usb_bus *bus;
struct usb_device_descriptor *desc;
struct usb_device *dev;
struct usb_dev_handle *m_USBHandle;
usb_init();
usb_find_busses();
usb_find_devices();
busses = usb_get_busses();
for(bus = busses;bus;bus = bus -> next)
{
for(dev = bus -> devices; dev ; dev = dev -> next)
{//search device
desc = &(dev -> descriptor);
printf("Vendor / Product ID: %04x:%04x\n",desc -> idVendor,desc -> idProduct);
if((desc -> idVendor == 0x118f) && (desc -> idProduct == 0x087f))
{//open device
m_USBHandle = NULL;
m_USBHandle = usb_open(dev);
if(m_USBHandle == NULL)
 
Ïà¹ØÎÊ´ð£º
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
ÔÏȵÄGCC°æ±¾Îª4.1.2,ÎÒÖØÐ±àÒë°²×°ÁËGCC4.3.2£¬µ«ÊDZàÒëÍê³ÌÐòÔËÐгÌÐòʱ»á³öÏÖversion `GLIBCXX_3.4.9' not found Õâ¸öÎÊÌ⣬ÎÒ²»Ì«Ã÷°×Ôõô»ØÊ£¬Çë¸÷λ´óϺָµãһϡ£
ÊÖ¶¯ÔÙ×°Ò»´Îglibc*_3.4.9
ÕâÊÇÎ ......
ÎÒ´ÓxpÓ²Å̰²×°ÁËfedora red£¬ÓÃgrub for dos°²×°³É¹¦£¬Æô¶¯ºóȴûÓÐlinuxµÄÆô¶¯Ï࣬ÊDz»ÊÇ»¹Òª×öЩÅäÖÃ
xp¿ÉÒÔÕý³£Æô¶¯£¬ÄÇλ´óϺ°ï°ï棬ÔÚÏߵȰ¡£¡
×Ô¼ºÏȶ¥ÏÂ
Æô¶¯ÏîÊÇÒª×Ô¼ºÊÖ¶¯Ìí¼ÓµÄ£¬ºÇºÇ
±à¼ºÃm ......
ÊÇÕâÑùµÄ£¬½ü¶ÎÔÚWINDOWSÉÏÉÏÍøÊ±×ÜÊÇÓв¡¶¾£¬ÎÒ²»Ï°¹ßװɱ¶¾Èí¼þ£¬ÒÔǰҲһֱûװ¹ý£¬¾õµÃÂé·³¡£È»ºó¾ÍÓ²Å̰²×°ÁËLINUX£¬»¹ºÃ£¬¿ÉÒÔÉÏÍø£¬¿ÉÒԲ鶫Î÷¡£µ«ÊÇÎÒÊÇÔÚWINDOWSÏÂ×öÈí¼þ¿ª·¢µÄ£¬»¹Ïë×°ÉÏWINDOWS£¬²»ÖªµÀÄÜ ......
ÎÒµÄÒâ˼ÊÇ£º
ÔÚ²»¸ü¸ÄÔÀ´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§
±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬ÔÀ´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔÀ´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......