linux Ïß³Ì×ÊÔ´ÊÍ·Å
LinuxϵͳÖгÌÐòµÄÏß³Ì×ÊÔ´ÊÇÓÐÏ޵ģ¬±íÏÖΪ¶ÔÓÚÒ»¸ö³ÌÐòÆäÄÜͬʱÔËÐеÄÏß³ÌÊýÊÇÓÐÏ޵ġ£¶øĬÈϵÄÌõ¼þÏ£¬Ò»¸öÏ߳̽áÊøºó£¬Æä¶ÔÓ¦µÄ×ÊÔ´²»»á±»ÊÍ·Å£¬ÓÚÊÇ£¬Èç¹ûÔÚÒ»¸ö³ÌÐòÖУ¬·´¸´½¨Á¢Ị̈߳¬¶øÏß³ÌÓÖĬÈϵÄÍ˳ö£¬Ôò×îÖÕÏß³Ì×ÊÔ´ºÄ¾¡£¬½ø³Ì½«²»ÔÙÄܽ¨Á¢ÐµÄÏ̡߳£
½â¾öÕâ¸öÎÊÌ⣬ÓÐ2ÖÖ·½Ê½£¬ÏµÍ³×Ô¶¯ÊÍ·ÅÏß³Ì×ÊÔ´£¬»òÕßÓÉÁíÒ»¸öÏß³ÌÊͷŸÃÏß³Ì×ÊÔ´¡£
×¢Ò⣬ÔÚÕâÀÎÒÈÏΪ½ø³ÌÔËÐк󣬱¾Éí£¬Ò²ÊÇÒ»¸öỊ̈߳¬Ö÷Ị̈߳¬Ö÷Ï̺߳ÍÖ÷Ï߳̽¨Á¢µÄÏ̹߳²Ïí½ø³Ì×ÊÔ´¡£²»Í¬ÓÚÆäËûỊ̈߳¬ÔÚÓÚÖ÷Ïß³ÌÔËÐнáÊøºó£¬³ÌÐòÍ˳ö£¬ËùÓгÌÐò½¨Á¢µÄÏß³ÌÒ²»áÍ˳ö¡£
ϵͳ×Ô¶¯ÊÍ·Å
Èç¹ûÏëÔÚÏ߳̽áÊøʱ£¬ÓÉϵͳÊÍ·ÅÏß³Ì×ÊÔ´£¬ÔòÐèÒªÉèÖÃÏß³ÌÊôÐÔΪdetach¡£
´úÂëÉÏ£¬¿ÉÒÔÕâÑù±íʾ£º
pthread_t t;
pthread_attr_t a; //Ïß³ÌÊôÐÔ
pthread_attr_init(&a); //³õʼ»¯Ïß³ÌÊôÐÔ
pthread_attr_setdetachstate(&a, PTHREAD_CREATE_DETACHED); //ÉèÖÃÏß³ÌÊôÐÔ
::pthread_create( &t, &a, GetAndSaveAuthviewSDRStub, (void*)lp); //½¨Á¢Ïß³Ì
ÆäËûÏß³ÌÊÍ·Å
ÁíÒ»ÖÖ·½Ê½£¬ÔòÊÇÓÉÁíÒ»¸öÏ߳̽«¸Ã×ÊÔ´ÊÍ·Å¡£
´úÂëÉÏ£¬¿ÉÒÔÕâÑù±íʾ£º
pthread_t t;
::pthread_create( NULL, NULL, GetAndSaveAuthviewSDRStub, (void*)lp);
::pthread_join( t);
::pthread_join( t)µÈ´ýÏß³ÌtÍ˳ö£¬²¢ÊÍ·ÅtÏß³ÌËùÕ¼ÓõÄ×ÊÔ´¡£µ±È»£¬ÕâÀïÒ²Óиöͬ²½µÄ¹¦ÄÜ£¬Ê¹Ò»¸öÏ̵߳ȴýÁíÒ»¸öÏß³ÌÍ˳ö£¬È»ºó²Å¼ÌÐøÔËÐС£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºfile:///C:/Documents%20and%20Settings/christgz/×ÀÃæ/Ïß³Ì×ÊÔ´ÊÍ·Å%20-%20ustcluµÄרÀ¸%20-%20CSDN²©¿Í.mht
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1.1.1 iptablesÔÀí
1.1.2 ÒÔ±¾µØΪԴµÄ°ü·¾¶
Step
Table
Chain
Comment
1
±¾µØ³ÌÐò£¨±ÈÈ磬·þÎñ³ÌÐò»ò¿Í»§³ÌÐò£©
2
·ÓÉÅжϣ¬ÒªÊ¹ÓÃÔ´µØÖ·£¬Íâ³ö½Ó¿Ú£¬»¹ÓÐÆäËûһЩÐÅÏ¢¡£
3
mangle
OUTPUT
ÔÚÕâ¶ù¿ÉÒÔmangle°ü¡£½¨Òé²»ÒªÔÚÕâ¶ù×ö¹ýÂË£¬¿ ......
ͨ¹ý±à¼/etc/inittabÀïµÄid:5:initdefault:ÕâÒ»Ðеİ¢À²®Êý×Ö£¬¿ÉʵÏÖÆô¶¯Ä£Ê½µÄת»»¡£ÀýÈ罫
id:5:initdefault:ÐÞ¸ÄΪid:3:initdefault:ÖØÐÂÆô¶¯ÏµÍ³ºó£¬ÎÒÃÇ¿É¿´µ½ÔÀ´µÄX-WindowͼÐβÙ×÷½çÃæת»»³ÉÁË
Console×Ö·û½çÃæ¡£
ÔÚ×Ö·û½çÃæÏ´òÈëÃüÁîstartx¿É½øÈëͼÐνçÃ棬ͼÐνçÃæϼüÈëctrl+alt+backspace½øÈë×Ö·û½çÃæ¡ ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
ÔÚ±¾ÎÄÖУ¬Ëùν“
Linux
֮·”ÊÇָͨÏòÍêÃÀ
Linux
×ÀÃæµÄµÀ·¡£Ì¸Æð
Linux
×ÀÃ棬ÓÐÈ˲»Ð¼Ò»¹Ë£¬àÍÖ®ÒԱǡ£Êµ¼ÊÇé¿öÈçºÎ£¿
11
ÔÂ
......