Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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)
             


Ïà¹ØÎÊ´ð£º

Linux Socket HTTPÇëÇóµÄÎÊÌ⣬¸ßÊÖ½ø£¡

СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£Ô­Òò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:

char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......

Linuxϰ²×°ÎÊÌâ

Ô­ÏȵÄGCC°æ±¾Îª4.1.2,ÎÒÖØÐ±àÒë°²×°ÁËGCC4.3.2£¬µ«ÊDZàÒëÍê³ÌÐòÔËÐгÌÐòʱ»á³öÏÖversion `GLIBCXX_3.4.9' not found Õâ¸öÎÊÌ⣬ÎÒ²»Ì«Ã÷°×Ôõô»ØÊ£¬Çë¸÷λ´óϺָµãһϡ£
ÊÖ¶¯ÔÙ×°Ò»´Îglibc*_3.4.9

ÕâÊÇÎ ......

Ó²Å̰²×°linuxûÓÐÆô¶¯Ïà

ÎÒ´ÓxpÓ²Å̰²×°ÁËfedora red£¬ÓÃgrub for dos°²×°³É¹¦£¬Æô¶¯ºóȴûÓÐlinuxµÄÆô¶¯Ï࣬ÊDz»ÊÇ»¹Òª×öЩÅäÖÃ
xp¿ÉÒÔÕý³£Æô¶¯£¬ÄÇλ´óϺ°ï°ï棬ÔÚÏߵȰ¡£¡
×Ô¼ºÏȶ¥ÏÂ

Æô¶¯ÏîÊÇÒª×Ô¼ºÊÖ¶¯Ìí¼ÓµÄ£¬ºÇºÇ

±à¼­ºÃm ......

Ó²Å̰²×°RedFlag LINUX ºó»¹¿ÉÒÔ°²×°WINDOWSÂð

ÊÇÕâÑùµÄ£¬½ü¶ÎÔÚWINDOWSÉÏÉÏÍøÊ±×ÜÊÇÓв¡¶¾£¬ÎÒ²»Ï°¹ßװɱ¶¾Èí¼þ£¬ÒÔǰҲһֱûװ¹ý£¬¾õµÃÂé·³¡£È»ºó¾ÍÓ²Å̰²×°ÁËLINUX£¬»¹ºÃ£¬¿ÉÒÔÉÏÍø£¬¿ÉÒԲ鶫Î÷¡£µ«ÊÇÎÒÊÇÔÚWINDOWSÏÂ×öÈí¼þ¿ª·¢µÄ£¬»¹Ïë×°ÉÏWINDOWS£¬²»ÖªµÀÄÜ ......

LinuxÈçºÎÏñwindowsÄÇÑù¸øÎļþ¼ÐÌí¼ÓÓû§

ÎÒµÄÒâ˼ÊÇ£º

ÔÚ²»¸ü¸ÄÔ­À´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§

±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬Ô­À´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔ­À´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ