Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Mam jakiś problem z tym skryptem. Dostaję coś takiego:
Modem initialized. --> Sending: ATD*99# --> Waiting for carrier. NO CARRIER --> No Carrier! Trying again. --> Sending: ATD*99# --> Waiting for carrier. NO CARRIER --> No Carrier! Trying again.
i tak w kółko.
Karta play fresh. Numer *99# jest poprawny bo się już łączyłem po kablu.
Offline
!/bin/bash echo 'włączam internet z playa' sudo rfcomm release 0 && sudo rfcomm bind 0 <adres-mojej-komórki> && sudo wvdial call play && sudo rfcomm release 0
./test włączam internet z playa --> WvDial: Internet dialer version 1.61 --> Warning: section [Dialer call] does not exist in wvdial.conf. --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATH ATH OK --> Sending: ATE1 ATE1 OK --> Sending: AT+CGDCONT=1,"IP","internet" AT+CGDCONT=1,"IP","internet" OK --> Modem initialized. --> Sending: ATD*99# --> Waiting for carrier. ATD*99# CONNECT ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~ --> Carrier detected. Starting PPP immediately. --> Starting pppd at Thu Dec 9 00:58:51 2010 --> Pid of pppd: 25708 --> Using interface ppp0 --> pppd: �QL�hSL��QL� --> pppd: �QL�hSL��QL� --> pppd: �QL�hSL��QL� --> local IP address 94.254.148.69 --> pppd: �QL�hSL��QL� --> remote IP address 10.6.6.6 --> pppd: �QL�hSL��QL� --> primary DNS address 89.108.195.20 --> pppd: �QL�hSL��QL� --> secondary DNS address 89.108.195.21 --> pppd: �QL�hSL��QL�
Wynik:
~ $ ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:46.113.218.73 P-t-P:10.6.6.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:64 (64.0 B) TX bytes:97 (97.0 B)
~ $ ip route list | grep ppp 10.6.6.6 dev ppp0 proto kernel scope link src 46.113.218.73 default via 10.6.6.6 dev ppp0
W rolach głównych udział wzięli: Nokia 6230i, play-fresh.
Tak więc #SOA1
U Ciebie obstawiałbym na coś w telefonie, albo zgodność modemu w telefonie z pppd i wvdial.
Pozdrawiam
;-)
Ostatnio edytowany przez Jacekalex (2010-12-09 01:08:36)
Offline
Ok już działa. Config /etc/wvdial.conf dla samsunga L760:
Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP","internet" Baud = 460800 New PPPD = yes Modem = /dev/rfcomm0 ISDN = 0 Phone = *99# FlowControl=NOFLOW Stupid mode = 1 Compuserve=0 Auto DNS=1 New PPPD=yes Password = "blank" Username = "blank"
Wystraczy tylko odpalić vwdial i już jest interent. Aha i jeszcze konfiguracja /etc/bluetooth/rfcomm.conf żeby był tam modem na stałe.
A tak btw, który internet na kartę jet obecnie najtańszy? Orange free?
Ostatnio edytowany przez tm (2010-12-09 15:32:44)
Offline
To jeszcze pytanie:
czy linijka
Phone = *99#[/quote]
ma wyglądać jak powyżej czy też *99***1#
gdzieś wyczytałem, że jest to ujednolicony standard dla wszystkich polskich sieci
Debian jest lepszy niż wszystkie klony
Linux register users: #359018
[img]http://www.freebsd.org/gifs/powerlogo.gif[/img]
[url=https://goo.gl/photos/5XGKFkvaMimLwM2s9]Beskid Niski[/url]
Offline
W Orange jest *99#.
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00071 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.218.73.233' WHERE u.id=1 |
0.00146 | UPDATE punbb_online SET logged=1732236109 WHERE ident='18.218.73.233' |
0.00023 | SELECT * FROM punbb_online WHERE logged<1732235809 |
0.00087 | DELETE FROM punbb_online WHERE ident='13.58.200.78' |
0.00054 | DELETE FROM punbb_online WHERE ident='18.223.237.218' |
0.00060 | DELETE FROM punbb_online WHERE ident='3.128.200.165' |
0.00060 | DELETE FROM punbb_online WHERE ident='3.143.235.104' |
0.00053 | DELETE FROM punbb_online WHERE ident='3.145.103.169' |
0.00059 | DELETE FROM punbb_online WHERE ident='3.22.249.229' |
0.00055 | SELECT topic_id FROM punbb_posts WHERE id=160287 |
0.00343 | SELECT id FROM punbb_posts WHERE topic_id=9844 ORDER BY posted |
0.00067 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=9844 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00134 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=9844 ORDER BY p.id LIMIT 25,25 |
0.00081 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=9844 |
Total query time: 0.01313 s |