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

linux϶¨Ê±Æ÷µÄʹÓ㨶þ£©

 
¡¾ÕªÒª¡¿
±¾ÎÄÖ÷Òª½éÉÜÁËlinuxµÄʱ¼äºÍ¶¨Ê±Æ÷¡£
¡¾¹Ø¼ü´Ê¡¿
Linux ¶¨Ê±Æ÷ ʱ¼ä
Ò»¡¢ÎÊÌâµÄÌá³ö
ÎÒÃÇ¿ª·¢³ÌÐòʱ£¬¾­³£»áÓöµ½Ê±¼äºÍ¶¨Ê±Æ÷µÄÎÊÌ⣬ΪÁ˸üºÃµÄʹÓÃʱ¼äºÍ¶¨Ê±Æ÷£¬ÏÖÔÚÁоÙÒ»¸öһЩʱ¼ä½á¹¹Ìå¡¢º¯ÊýºÍ¶¨Ê±Æ÷¡£
¶þ¡¢½â¾ö˼·
1.ʱ¼äÀàÐÍ
1) time_tÊÇÒ»¸ö³¤ÕûÐÍ£¬Ò»°ãÓÃÀ´±íʾÓÃ1970ÄêÒÔÀ´µÄÃëÊý¡£
2)struct timevalÓÐÁ½¸ö³ÉÔ±£¬Ò»¸öÊÇÃ룬һ¸öÊÇ΢Ãî¡£
struct timeval
{             
long tv_sec;        /* seconds */         
   long tv_usec;   /* microseconds */  
};
3) struct timespecÓÐÁ½¸ö³ÉÔ±£¬Ò»¸öÊÇÃ룬һ¸öÊÇÄÉÃë¡£
struct timespec
{
   time_t tv_sec;          /* seconds */
       long    tv_nsec;        /* nanoseconds */
};
4) struct tmÊÇÖ±¹ÛÒâÒåÉϵÄʱ¼ä±íʾ·½·¨
struct tm
{                  
int     tm_sec;         /* seconds */                   
int     tm_min;         /* minutes */                     
int     tm_hour;        /* hours */                  
int     tm_mday;         /* day of the month
*/                   


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

ÌØ´óϲѶ£ºÀ¥É½ÐùÔ¯Linux¿ª·ÅʵÑéÊÒÀ²£¡£¡£¡

 À¥É½ÐùÔ¯Linux¿ª·ÅʵÑéÊÒ
¼ò½é
        Ϊ·½±ã¹ã´óLinuxÈí¼þ¿ª·¢Õߣ¬ÐùÔ¯¸ß¶ËITÅàѵÖÐÐÄÓÚ2009Äê10ÔÂÉèÁ¢ÁËLinux¿ª·ÅʵÑéÊÒ£¬ÐùÔ¯Linux¿ª·ÅʵÑéÊÒÌṩÁËÍêÕûµÄLinux Èí¼þ¿ª·¢»·¾³£¬°üÀ¨£ºC/C++£¨GCC¡¢GDB£©¡¢make¡¢Java¡¢Python¡¢Perl¡¢C++ Boost¡¢C++ ACE¡¢C++ OTL¡¢Oracle¡¢M ......

MountÃüÁLinuxÍâÖô洢½éÖʹÒÔØ·½·¨

 linux½Ì³Ì:MountÃüÁLinuxÍâÖô洢½éÖʹÒÔØ·½·¨
¡¡LinuxϵͳÔÚʹÓùâÅÌ¡¢ÈíÅÌ»òUÅÌʱ£¬±ØÐëÏÈÖ´ÐйÒÔØ£¨mount£©ÃüÁî¡£¹ÒÔØÃüÁî»á½«ÕâЩ´æ´¢½éÖÊÖ¸¶¨³ÉϵͳÖеÄij¸öĿ¼£¬ÒÔºóÖ±½Ó·ÃÎÊÏàӦĿ¼¼´¿É¶Áд´æ´¢½éÖÊÉϵÄÊý¾Ý¡£
¡¡¡¡1.¹ÒÔعâÅÌ
¡¡¡¡¹ÒÔعâÅ̵ÄÃüÁîÈçÏ£º
¡¡¡¡# mount -t is09660 /dev/cdrom /mnt/cdr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ