Привет всем! Хочу поделится опытом настройки GPRS модема на NOKIA 6230i в openSuSe 10.3 За основу взял вот эту статью: http://linuxmobile.lrn.ru/wiki/index.php?title=BenqSiemens_::_Slackware_Linu... Вот мой вариант (только написал на анг. коменты - надеюсь все поймут) I think your OS (linux) know your bluetoth and device is present. 1. hcitool scan Scanning ... 00:13:FD:82:7A:AD Nokia 6230i 2. sudo vi /etc/bluetooth/rfcomm.conf # # RFCOMM configuration file. # rfcomm0 { # Automatically bind the device at startup bind no; # Bluetooth address of the device device 00:13:FD:82:7A:AD; #Here your phone's MAC # RFCOMM channel for the connection channel 1; # Description of the connection comment "Nokia 6230i"; #Here name of your phone } 3. sudo vi /etc/ppp/pap-secrets # Secrets for authentication using PAP # client server secret IP addresses life * "" * #Here you write login and pass for your operator 4. sudo vi /sbin/gprs #!/bin/sh DIALTIMEOUT=20 #Here input config of you operator AT+CGDCONT=1,\"IP\",\"your_operator_config\" MODEM=rfcomm0 SPEED=115200 MODEM_INIT='AT+CGDCONT=1,\"IP\",\"internet\" OK' IH_IP=" ipcp-accept-local ipcp-accept-remote noipdefault debug usepeerdns user gdata mtu 576 novj nobsdcomp novjccomp nopcomp noaccomp noauth" LOGSCRIPT="CONNECT" #Here input number for your model of phone; For Nokia is *99# PHONE="*99#" DR=`route -n | egrep '^0.0.0.0'| grep -v ppp | sed 's/^[^ ]* *\([^ ]*\) .*/default gw \1/'` ; if [ -n "$DR" ] ; then trap "echo route add $DR ; route add $DR ; exit" 2 3 9 15 route delete $DR echo route delete $DR fi while true ; do pppd \ connect 'chat -v ABORT "NO DIALTONE" ABORT "NO CARRIER" ABORT BUSY "" '"$MODEM_INIT"' ATDP'$PHONE' '"$LOGSCRIPT"' ;' \ crtscts defaultroute modem -detach mru 576 \ $NASH_IP:$IH_IP /dev/$MODEM $SPEED cat /etc/ppp/resolv.conf > /etc/resolv.conf sleep $DIALTIMEOUT done 5. sudo chmod 755 /sbin/gprs 6. service bluetooth restart 7. rfcomm -a 8. rfcomm release rfcomm0 9. rfcomm bind 0 00:13:FD:82:7A:AD 1 #Here input MAC of your phone! 10 gprs --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-ru+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ru+help@opensuse.org
participants (1)
-
.:Deren B:.