GPRS + bluetooth + megafon [SOLVED]
joper 9 января, 2009 - 20:12
Понадобился недавно жопорез.
Пытаюсь настроить через bluetooth, телефон NOKIA 6600
Настравивал по http://www.gentoo.ru/node/517
Соединение вроде устанавливается, но тут же рвётся...
В логах следующее
# tail -f /var/log/syslog ......... Jan 9 19:03:00 chlorum pppd[10143]: Plugin passwordfd.so loaded. Jan 9 19:03:00 chlorum pppd[10143]: pppd 2.4.4 started by root, uid 0 Jan 9 19:03:00 chlorum hcid[17592]: link_key_request (sba=00:1F:E1:F1:DA:91, dba=00:0E:6D:A3:CB:D3) Jan 9 19:03:02 chlorum chat[10146]: abort on (BUSY) Jan 9 19:03:02 chlorum chat[10146]: abort on (ERROR) Jan 9 19:03:02 chlorum chat[10146]: abort on (NO ANSWER) Jan 9 19:03:02 chlorum chat[10146]: abort on (NO CARRIER) Jan 9 19:03:02 chlorum chat[10146]: abort on (NO DIALTONE) Jan 9 19:03:02 chlorum chat[10146]: abort on (Invalid Login) Jan 9 19:03:02 chlorum chat[10146]: abort on (Login incorrect) Jan 9 19:03:02 chlorum chat[10146]: abort on (Username/Password Incorrect) Jan 9 19:03:02 chlorum chat[10146]: timeout set to 5 seconds Jan 9 19:03:02 chlorum chat[10146]: send (AT+CGDCONT=1,"IP","internet"^M) Jan 9 19:03:03 chlorum chat[10146]: expect (OK) Jan 9 19:03:03 chlorum chat[10146]: ^M Jan 9 19:03:03 chlorum chat[10146]: OK Jan 9 19:03:03 chlorum chat[10146]: -- got it Jan 9 19:03:03 chlorum chat[10146]: send (ATDT*99#^M) Jan 9 19:03:03 chlorum chat[10146]: timeout set to 60 seconds Jan 9 19:03:03 chlorum chat[10146]: expect (CONNECT) Jan 9 19:03:03 chlorum chat[10146]: ^M Jan 9 19:03:06 chlorum chat[10146]: ^M Jan 9 19:03:06 chlorum chat[10146]: CONNECT Jan 9 19:03:06 chlorum chat[10146]: -- got it Jan 9 19:03:06 chlorum chat[10146]: send (^M) Jan 9 19:03:06 chlorum chat[10146]: timeout set to 5 seconds Jan 9 19:03:06 chlorum chat[10146]: expect (~) Jan 9 19:03:06 chlorum chat[10146]: ^M Jan 9 19:03:06 chlorum chat[10146]: ~ Jan 9 19:03:06 chlorum chat[10146]: -- got it Jan 9 19:03:06 chlorum chat[10146]: send (^M) Jan 9 19:03:06 chlorum pppd[10143]: Serial connection established. Jan 9 19:03:06 chlorum pppd[10143]: using channel 13 Jan 9 19:03:06 chlorum pppd[10143]: Using interface ppp0 Jan 9 19:03:06 chlorum pppd[10143]: Connect: ppp0 <--> /dev/rfcomm0 Jan 9 19:03:07 chlorum pppd[10143]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <pcomp> <accomp>] Jan 9 19:03:07 chlorum pppd[10143]: rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] Jan 9 19:03:07 chlorum pppd[10143]: sent [LCP ConfReq id=0x2 <asyncmap 0xa0000>] Jan 9 19:03:07 chlorum pppd[10143]: rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000>] Jan 9 19:03:09 chlorum pppd[10143]: rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>] Jan 9 19:03:09 chlorum pppd[10143]: sent [LCP ConfAck id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>] Jan 9 19:03:09 chlorum pppd[10143]: sent [LCP EchoReq id=0x0 magic=0x0] Jan 9 19:03:09 chlorum pppd[10143]: sent [PAP AuthReq id=0x1 user="gdata" password=<hidden>] Jan 9 19:03:09 chlorum pppd[10143]: rcvd [LCP EchoRep id=0x0 magic=0x0] Jan 9 19:03:09 chlorum pppd[10143]: rcvd [PAP AuthAck id=0x1 ""] Jan 9 19:03:09 chlorum pppd[10143]: PAP authentication succeeded Jan 9 19:03:09 chlorum pppd[10143]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] Jan 9 19:03:09 chlorum pppd[10143]: rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>] Jan 9 19:03:09 chlorum pppd[10143]: sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>] Jan 9 19:03:11 chlorum pppd[10143]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] Jan 9 19:03:11 chlorum pppd[10143]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] Jan 9 19:03:11 chlorum pppd[10143]: rcvd [IPCP ConfNak id=0x2 <addr 10.216.170.96> <ms-dns1 10.77.48.2> <ms-dns3 10.77.48.3>] Jan 9 19:03:11 chlorum pppd[10143]: sent [IPCP ConfReq id=0x3 <addr 10.216.170.96> <ms-dns1 10.77.48.2> <ms-dns3 10.77.48.3>] Jan 9 19:03:11 chlorum pppd[10143]: rcvd [IPCP ConfAck id=0x3 <addr 10.216.170.96> <ms-dns1 10.77.48.2> <ms-dns3 10.77.48.3>] Jan 9 19:03:11 chlorum pppd[10143]: local IP address 10.216.170.96 Jan 9 19:03:11 chlorum pppd[10143]: remote IP address 10.6.6.6 Jan 9 19:03:11 chlorum pppd[10143]: primary DNS address 10.77.48.2 Jan 9 19:03:11 chlorum pppd[10143]: secondary DNS address 10.77.48.3 Jan 9 19:03:11 chlorum pppd[10149]: Script /etc/ppp/ip-up started (pid 10151) Jan 9 19:03:11 chlorum pppd[10149]: Modem hangup Jan 9 19:03:11 chlorum pppd[10149]: Connect time 0.0 minutes. Jan 9 19:03:11 chlorum pppd[10149]: Sent 0 bytes, received 0 bytes. Jan 9 19:03:11 chlorum pppd[10149]: Connection terminated. Jan 9 19:03:12 chlorum pppd[10149]: Script /etc/ppp/ip-up finished (pid 10151), status = 0x0 Jan 9 19:03:12 chlorum pppd[10149]: Script /etc/ppp/ip-down started (pid 10614) Jan 9 19:03:13 chlorum pppd[10149]: Script /etc/ppp/ip-down finished (pid 10614), status = 0x0 Jan 9 19:03:17 chlorum pppd[10149]: Terminating on signal 15 Jan 9 19:03:17 chlorum pppd[10149]: Exit.
Конфиги:
/etc/conf.d/net
# cat /etc/conf.d/net config_ppp0=( "ppp" ) RC_NEED_ppp0="bluetooth" link_ppp0="/dev/rfcomm0" username_ppp0="gdata" password_ppp0="gdata" pppd_ppp0=( "maxfail 1" "updetach" "debug" "noauth" "defaultroute" "usepeerdns" "lcp-echo-interval 15" "lcp-echo-failure 3" "nobsdcomp" "nodeflate" # echo-requests # Dial-up settings "lock" # Lock serial port "115200" # Set the serial port baud rate "modem crtscts" # Enable hardware flow control "noauth" "kdebug 7" "persist" ) phone_number_ppp0=( # Maximum 2 phone numbers are supported "*99#" ) chat_ppp0=( 'ABORT' 'BUSY' 'ABORT' 'ERROR' 'ABORT' 'NO ANSWER' 'ABORT' 'NO CARRIER' 'ABORT' 'NO DIALTONE' 'ABORT' 'Invalid Login' 'ABORT' 'Login incorrect' 'ABORT' 'Username/Password Incorrect' 'TIMEOUT' '5' '' 'AT+CGDCONT=1,"IP","internet"' 'OK' 'ATDT\T' 'TIMEOUT' '60' 'CONNECT' '' 'TIMEOUT' '5' '~--' '' )
/etc/bluetooth/hcid.conf
# cat /etc/bluetooth/hcid.conf # HCI daemon configuration file. # # HCId options options { autoinit yes; security auto; pin_helper /etc/bluetooth/pin-helper; # D-Bus PIN helper #dbus_pin_helper; } # Default settings for HCI devices device { name "Chlorum"; class 0x3e0100; iscan enable; pscan enable; lm accept, master; lp rswitch,hold,sniff,park; }
Модули
# lsmod Module Size Used by sha1_generic 2752 0 arc4 2176 0 ecb 3200 0 crypto_blkcipher 16004 1 ecb cryptomgr 3200 0 crypto_algapi 14016 5 sha1_generic,arc4,ecb,crypto_blkcipher,cryptomgr ppp_mppe 6472 0 ppp_deflate 5056 0 zlib_deflate 19288 1 ppp_deflate zlib_inflate 14080 1 ppp_deflate bsd_comp 5504 0 ppp_async 8768 0 crc_ccitt 2240 1 ppp_async ppp_generic 22696 4 ppp_mppe,ppp_deflate,bsd_comp,ppp_async slhc 5440 1 ppp_generic sky2 42436 0 vmnet 31840 3 vmmon 976076 0 rfcomm 34208 2 l2cap 19712 5 rfcomm hci_usb 12508 3 bluetooth 49444 9 rfcomm,l2cap,hci_usb vmblock 12048 3 snd_seq 48480 0 snd_seq_device 6804 1 snd_seq snd_pcm_oss 24416 0 snd_mixer_oss 14656 1 snd_pcm_oss i915 31360 3 drm 81888 4 i915 ndiswrapper 194752 0 i2c_i801 9436 0 snd_hda_intel 97288 4 snd_pcm 64520 3 snd_pcm_oss,snd_hda_intel snd_timer 19920 3 snd_seq,snd_pcm snd 53000 13 snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer snd_page_alloc 8144 2 snd_hda_intel,snd_pcm
»
- Для комментирования войдите или зарегистрируйтесь
.
Попробуйте использовать этот мануальчик - http://www.openirc.ru/download/gprs.html.tar.gz
Не помогла, проблема та же.
Не помогла, проблема та же. Подключается получает адреса, и тут же отваливается...
попробуй, может поможет
это взято из проекта GPRS_Easy_Connect. Без него свои SE и Siemens подключить не смог (сhat_ppp0 у них выглядят совершенно иначе).
еще возможно
Проблема была в "updetach"
Спасибо!
Проблема была в
"updetach" # Установленная опция заставляет инит скрипт ждать пока pppd установит соединение
Эту опцию нужно отключить.