ÔÚLinuxÏÂͨ¹ýPPPÉÏWCDMA
ÕÛÌÚÁËÒ»·¬Í¨¹ý¼¸ÖÖUSBÉÏÍø¿¨ÔÚLinuxÏÂÉÏWCDMA£¬Ôڴ˼ǼһÏ£º
ͨÓÃÅäÖÃÎļþ£º
/etc/ppp/peers/wcdma :
/dev/ttyACM0
460800
connect '/etc/ppp/chat-wcdma'
noauth
usepeerdns
noipdefault
defaultroute
----
×¢Ò⣬ÆäÖеÄ/dev/ttyACM0 ÊÇ´®¿ÚÉ豸£¬ºóÃæÃèÊö¡£
/etc/ppp/chat-wcdma
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v \
ECHO ON \
ABORT 'BUSY' \
ABORT 'NO ANSWER' \
ABORT 'ERROR' \
TIMEOUT 20 \
'' 'AT' \
OK AT+CFUN=6 \
OK 'AT+CGDCONT=1,"IP","3gnet",,0,0' \
OK 'ATDT*99#' \
CONNECT
ÆäÖеÄ3gnet ¾ÍÊÇÁªÍ¨WCDMAÉÏÍøÐèÒªµÄAPNÀ²¡£ CFUN=6ÊÇÈÃË÷°®MD-400Ö»¹¤×÷ÔÚWCDMAÍøÂçÏ¡£ÏàÓ¦µØCFUN=5¾ÍÖ»¹¤×÷ÔÙGSM/GPRS/EDGEÏ£¬ CFUN=1¾ÍÊÇÈ«×Ô¶¯Ñ¡Ôñ
²¦ºÅÁ¬½Óʱ£¬ÓÃ
pppd call wcdma
¼´¿É¡£Äã¿ÉÒÔ×Ô¼ºÉèÖÃIPαװNATµÈµÈÊÂÒË¡£
ÒÔÉÏÊÇÓÃË÷Äá°®Á¢ÐÅMD-400ÉÏÍø¿¨ÉèÖõģ¬Èç¹ûÄãÓõÄÊÇ»ªÎªE1750, ÄÇôÉ豸Ãû¾Í»»³É/dev/ttyUSB0 ¼´¿É¡£
ÎÞÂÛÊÇË÷°®MD400»¹ÊÇ»ªÎªE1750, ¶¼ÐèҪС¹¤¾ß usb_modeswitch 1.0.2 Çл»Æ䵹ùµÄUSB¹¤×÷״̬£¬ÏêϸµÄ½éÉܺÍÏÂÔØ¿ÉÒÔÈ¥ÕâÀï¿´¿´£º http://www.draisberghof.de/usb_modeswitch/
Èç¹ûÊǵçÐŵÄÌìÒíCDMA2000 EV-DO 3G, ²âÊÔÁËһϻªÎªEC1260£¬»ù±¾Çø±ð²»´ó£¬×¢ÒâÒÔϼ¸µã£º
1£¬ 2.6.19Ö®ºóµÄºËÐÄÓÐרÃŶԸ¶EC1260µÄ´úÂë, ²å½øÈ¥Ö±½Ó¾ÍÁîÆ乤×÷ÔÚModemģʽ£¬Äã»á¿´µ½ÓÐ/dev/ttyUSB0É豸£¬¿ÉÒÔ²»ÐèÒªusb_modeswitchµÄ°ïÖú¡£µÍ°æ±¾ºËÐÄ¿ÉÄÜ»¹Àë²»¿ª¡£
2£¬ EVDOûÓÐAPNµÄ¸ÅÄÉÏÃæµÄ/etc/ppp/chat-wcdma ½Å±¾¸Ä³ÉÕâÑù¼´¿É£º
[root@pxi4g ppp]# cat chat-evdo
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v \
ECHO ON \
ABORT 'BUSY' \
ABORT 'NO ANSWER' \
ABORT 'ERROR' \
TIMEOUT 20 \
'' 'AT' \
OK 'ATDT#777' \
CONNECT
Ò²¾ÍÊÇ˵£¬Ö±½Ó²¦ÌØÊâºÅÂë#777¼´¿É¡£ peers/wcdmaÎļþ¿ÉÒÔ²»¸Ä¡£
http://blog.chinaunix.net/
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
Éó¼Æ¸ú×ÙLinuxµÄÒì³£»î¶¯
Zhaoke, 2007-01-29
һЩÒì³£Óû§ÊÔͼÒÆȥϵͳÉϵÄËùÓл¼Ç¼(±ÈÈç ~/.bash_history), ²»¹ýÎÒÃÇ¿ÉÒÔʹÓÃרÃŵŤ¾ßÀ´¼àÊÓËùÓÐÓû§Ö´ÐеÄÃüÁî. ÍƼöÄãʹÓýø³Ì¼ÇÕÊÀ´¼Ç¼Óû§µÄ»î¶¯, Äã¿ÉÒÔͨ¹ý½ø³Ì¼ÇÕʲ鿴ÿһ¸öÓû§Ö´ÐеÄÃüÁî, °üÀ¨CPUʱ¼äºÍÄÚ´æÕ¼ÓÃ.
psacct³ÌÐòÌṩÁ˼¸¸ö½ø³Ì»î¶¯¼àÊ ......
ʵģʽΪʲô²»°²È«£¿
ÔÚʵģʽÖУ¬cpu¸ù¾ÝÖ¸ÁîÀàÐ;ö¶¨²ÉÓÃDS¡¢CS¡¢ES»¹ÊÇSS£¬´Ó¶Î¼Ä´æÆ÷ÖÐÈ¡³ö»ùÖµ£¬ÔÙ´ÓÖ¸ÁîÖÐÈ¡³öÆ«ÒÆÖµ¡£ÕâÀï´æÔÚÁ½¸öÎÊÌ⣺
1. ¶Î¼Ä´æÆ÷µÄÖµ¿ÉÒÔ±»ÆÕͨȨÏÞµÄÖ¸Áî·ÃÎÊ£¬Õâ¾ÍÒâζ×ÅÓû§½ø³Ì¿ÉÒÔÐ޸ĶμĴæÆ÷µÄÖµ¡£
2. Æ«ÒÆֵΪ16룬¿ÉÒÔ·ÃÎÊ´Ó»ùµØÖ·¿ªÊ¼µÄ64KµÄÁ¬Ðø¿Õ¼ä¡£
ͨ¹ýÕâÁ½¸öÖµ£¬¿ÉÒÔ·ÃÎÊ ......