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

ʵսLinux Bluetooth±à³Ì£¨¶þ£© BlueZ¼ò½é

LinuxÏÂBluetoothЭÒéÕ»µÄʵÏÖ. LinuxÏ¿ª·ÅµÄÀ¶ÑÀЭÒéÕ»Ö÷Òª°üÀ¨IBM¹«Ë¾µÄBlueDrekar£¬Nokia¹«Ë¾µÄAffix, Axis¹«Ë¾µÄOpenBTºÍ¹Ù·½Ð­ÒéÕ»BlueZ¡£ÎÒÃÇÖ÷ÒªÃæ¶ÔBluezÀ´Ì½ÌÖ¡£
BlueZ»ù´¡´úÂë¾ùÊÇÓÉMaxim KrasnyanskyÍê³ÉµÄ¡£°üÀ¨£ºHCI£¬L2CAP£¬RFCOMMºÍ»ù±¾socketµÄʵÏÖ¡£Ëû¾ÍÖ°ÓÚQualcomm(¸ßͨ)¡£Marcel Holtmann¿ª·¢²ãµÄЭÒéºÍÓ¦Ó㬰üÀ¨£ºBNEP, CMTPµÈ¡£µ±È»£¬ÕâЩÖÐÒ²ÓÐMaxim KrasnyanskyµÄ²ÎÔ¤¡£Óв¿·Ö´úÂëÓÉNokiaÌṩµÄ¡£
BluezÊÇÈçºÎʵÏÖBluetoothЭÒéÕ»µÄÄØ£¿ Ëü·Ö2²¿·ÖʵÏÖ£º
1.Kernel²ãʵÏÖ£º
ÕýÈçÉÏһƪËù̸µ½µÄ£¬bluetoothЭÒéÕ»Óжà²ã½á¹¹£¬×îµ×²ãµÄÓ²¼þЭÒéÔÚÓ²¼þÖоÍÒѾ­ÊµÏÖÁË¡££¨ÀýÈçbroadcomµÄоƬÖУ¬µ×²ãÓ²¼þЭÒéÒѾ­°üº¬ÓÚоƬ֮ÖÐÁË£©¡£Èí¼þ¼¶±ðµÄЭÒéʵÏÖ£¬´ÓHCIÕâÒ»²ãÆð¾Í¿ÉÒÔÁË¡£ BlueZ¶Ô¸÷²ãЭÒéµÄʵÏÖÊÇÒÀÍÐÓÚSocketµÄ¡£BlueZÊ×ÏÈ´´½¨ÁËÒ»¸öеÄSocketÖеÄЭÒé--PF_BLUETOOTH £¨AF_BLUETOOTH=31). £¨Ò²¾ÍÊÇ˵£¬Socket£¨£©µÄµÚÒ»¸ö²ÎÊý£ºdomain±ØÐëÊÇ£ºPF_BLUETOOTH £©¡£ÕâÒ²Òâζ×Å£¬µØÖ·ÀàÐÍÐèҪʹÓÃBluetoothËù¶¨ÒåµÄ¡£
ÆäʵºÜ¼òµ¥£¬¾ÍÊÇÔÚnet_families(ÍøÂçЭÒéÁбí)ÖÐÌí¼ÓÁËPF_BLUETOOTHÕâÒ»Ïî¡£Èç¹û¶ÔLinux KernelÓÐÁ˽âµÄ»°£¬¾ÍÖªµÀÕâ¸ö×¢²á¶¯×÷Ò»¶¨ÔÚBluetooth init²¿·Ö×÷µÄ¡£
ͬÑù£¬¸÷¸öЭÒé²ã£¨È磺HCI£¬L2CAP,HIDµÈ£©¶¼½«×Ô¼ºµÄÐÐΪ¹æ·¶Ìí¼Óµ½PF_BLUETOOTHЭÒéÖС£
2.Ó¦ÓóÌÐò²ãʵÏÖ£º
ËäÈ»Kernel²ãÒѾ­½«BluetoothЭÒéÕ»ÍêȫʵÏÖÁË£¬µ«Èç¹ûҪʹÓÃÆðÀ´£¬»¹ÊǷdz£²»·½±ãµÄ¡£±Ï¾¹Ó¦ÓóÌÐòÓëkernel×î·½±ãµÄ½»Á÷ͨµÀ¾ÍÊÇioctl().Õâ·Ç³£²»Ö±¹Û¡£ÓÚÊÇ£¬BlueZÓÖÌṩÁËÒ»Ì×API,Õâ¸öAPI°ïÖú¿ª·¢Õß·½±ãµÄÓëKernel²ãЭÒé´ò½»µÀ¡£µ±È»£¬ÕâЩAPIµ×²ãµÄʵÏÖÆä¾ÍÊÇÊÇioctl.
BlueZµÄʱ¼ä£¬»ù±¾¾ÍÊÇÕâÑùÁË¡£ÏÂÃæÔÛÃǾßÌåÑо¿ÈçºÎʹÓÃBlueZËùÌṩµÄÕâÌ×API¡£


Ïà¹ØÎĵµ£º

redhat linux ÏÂFTPÅäÖÃ (¶þ)

redhat linux ÏÂFTPÅäÖá£(vsftp)
 
1.Æô¶¯vsftp£º /sbin/service vsftpd start  ±¸×¢d´ú±íÔÙºǫ́Æô¶¯¡£
2.²é¿´ÊÇ·ñÆô¶¯£¬¾ÍµÇ½µ½FTPÊÔÊÔ¡£ µÇ½FTP£ºftp localhost Í˳öFTP£ºbye
3.²é¿´Linux IP £ºifconfig
ÔÚ¿ØÖƹÜÀį́Ï¿ɿ´¼ûÈçÏ´úÂ룺¿ÉÒÔ¿´³ö£¬IP Address ÊÇ£º192.168.0.128
 
4.Èç¹û¾ÖÓòÍ ......

Linux²Ù×÷ϵͳÏÂÉèÖû·¾³±äÁ¿PathµÄ·½·¨

ÓÐÁ½ÖÖÉèÖû·¾³±äÁ¿ PATH µÄ·½·¨¡£µÚÒ»ÖÖÊÊÓÃÓÚΪµ¥Ò»Óû§ÉèÖà PATH£¬µÚ¶þÖÖÊÇΪȫ¾ÖÉèÖà PATH¡£
 
1.ÔÚÓû§Ö÷Ŀ¼ÏÂÓÐÒ»¸ö .bashrc Îļþ£¬¿ÉÒÔÔÚ´ËÎļþÖмÓÈë PATH µÄÉèÖÃÈçÏ£º
export PATH=”$PATH:/your path1/:/your path2/…..”
×¢Ò⣺ÿһ¸ö path Ö®¼äÒªÓà “:“ ·Ö¸ô¡£
× ......

LinuxÏ php5 MySQL5 Apache2 °²×°ÓëÅäÖÃ


mkdir /downloads
chown -R root:root /downloads
chmod -R 774 /downloads
Ò»¡¢°²×°Apache2
    ÏÂÔصØÖ·£ºhttp://www.apache.org/ --> HTTP Server --> from a mirror
    1. »ñÈ¡mysqlÔ´Âë
        shell> cd /downloads
     ......

£¨×ª£©¾­µä£ºLinux²ËÄñÈëÃż¶ÃüÁî´óÈ«

1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ
eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨
×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£
2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
ls -l
a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾÊÇÒ»¸öÁ¬½ÓÎļþ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ