Autore Topic: come fare a connettere internet key alla saponetta?  (Letto 1331 volte)

nonno

  • Jr. Member
  • **
  • Post: 54
    • Mostra profilo
come fare a connettere internet key alla saponetta?
« il: Febbraio 01, 2009, 07:49:12 pm »
Ciao a tutti...da un mese sono in possesso della saponetta e la utilizzo come daily phone con om 2008.12 qualcuno puó aiutarmi? Vorrei utilizzare il modem USB 3g HUAWEI e220 al MOKO. Qualcuno ha giá provato? Grazie in anticipo.

Treviño

  • WebDev
  • Hero Member
  • *****
  • Post: 1150
  • | 3v1n0 |
    • Mostra profilo
    • Treviño's World
Re:come fare a connettere internet key alla saponetta?
« Risposta #1 il: Febbraio 01, 2009, 08:10:11 pm »
In teoria credo che basti compilare i moduli per il kernel necessari (non so come si chiamino, ma dovresti trovare semplicemente informazioni a giro dato che di fatto sono simili per ogni distro linux, openmoko inclusa) e poi configurare i tool esterni... Non avendola, però, non posso provare :|
Se la inserisci, con la porta USB in host-powered mode, che ti succede (logread, dmesg)?
Treviño's Misc Openmoko Files - http://3v1n0.net/openmoko

sylar

  • Global Moderator
  • Hero Member
  • *****
  • Post: 2379
    • Mostra profilo
    • ThomasBertani.it
Re:come fare a connettere internet key alla saponetta?
« Risposta #2 il: Febbraio 01, 2009, 08:20:34 pm »
In teoria credo che basti compilare i moduli per il kernel necessari (non so come si chiamino, ma dovresti trovare semplicemente informazioni a giro dato che di fatto sono simili per ogni distro linux, openmoko inclusa) e poi configurare i tool esterni... Non avendola, però, non posso provare :|
Se la inserisci, con la porta USB in host-powered mode, che ti succede (logread, dmesg)?

ce l'ho io

avevo provato mesi fa ed andava senza fare nulla... tranne che ovviamente configurare a dovere ppp
Proud to be a "just for fun" developer   :)

http://www.thomasbertani.it

djdas

  • Hero Member
  • *****
  • Post: 2691
  • Namastè - Om Mani Pedmè Hung
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #3 il: Febbraio 01, 2009, 09:09:15 pm »
Funziona alla grandissima invece, io l'ho usata e configurata perfettamente.
I passi più o meno sono questi:
1) avere un kernel e i moduli installati correttamente, con versione >= 3:2.6.24+gitr76014+fb42ce6724576fc173faf8abfb04aa2c36d213b7-r2.01 (per moduli installati correttamente banalmente ti dico di provare un "modprobe usbserial" e lui non deve darti errore);
2) configurare il ppp, in questo modo:
2.1) aggiungere nella directory /etc/ppp/peers un file con un nome che ti ricordi la connessione (ad es. "nome_provider") contenente ciò che segue:
Codice: [Seleziona]
/dev/ttyUSB0
3600000
connect /etc/ppp/peers/gprs-connect-chat
crtscts
defaultroute
disconnect /etc/ppp/peers/gprs-disconnect-chat
ipcp-accept-local
local
noaccomp
noauth
nobsdcomp
nodetach
noipdefault
nopcomp
novj
novjccomp
show-password
2.2) sempre nella stessa directory di sopra creare il file gprs-connect-chat con il seguente contenuto:
Codice: [Seleziona]
#!/bin/sh
exec chat                                               \
        TIMEOUT         5                               \
        ECHO            ON                              \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nERROR\r'                     \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nNO CARRIER\r'                \
        ABORT           '\nNO DIALTONE\r'               \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        TIMEOUT         12                              \
        SAY             "Press CTRL-C to close the connection at any stage!"    \
        SAY             "\ndefining PDP context...\n"   \
        OK              ATH                             \
        OK              ATE1                            \
***        SAY             'AT+CGDCONT=1,"IP","internet.wind"'   \
***        OK              ATD*99***1#                         \
        SAY             "\nOK...\n"   \
        TIMEOUT         22                              \
        SAY             "\nwaiting for connect...\n"    \
        CONNECT         ""                              \
        SAY             "\nConnected." \
        SAY             "\nIf the following ppp negotiations fail,\n"   \
        SAY             "try restarting the phone.\n"
Attenzione alle righe con i tre asterischi in testa (DA RIMUOVERE)! Ci va l'apn del tuo provider (al posto di "internet.wind") e il numero da chiamare (al posto di "*99***1#")
3) attivare la modalità host con alimentazione sulla USB (puoi scaricare il programma USBMode da Opkg.org se non ricordo male), connettere il modem USB al moko e verificare che (tramite un "tail /var/log/messages") vengano correttamente create le interfacce /dev/ttyUSB0 1 e 2 (non ricordo se sul moko viene creata anche la 2, ma di sicuro 0 e 1 servono);
4) connettersi al provider usando da riga di comando "pppd call <nome_provider>" (senza i <> e sostituendo a nome_provider il nome del file che avevi creato al punto 2.1)

E' un how-to un po' grezzo visto che vado a memoria di quando ho provato, ma dovrebbe funzionare, io ci sono riuscito e andava bene, unica pecca come al solito la batteria, in 15 minuti di connessione si è ciucciato quasi il 25% di carica ???

Fammi sapere come va, ciau!
Distro FDTF Download: TAR ,JFFS2,Kernel

nonno

  • Jr. Member
  • **
  • Post: 54
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #4 il: Febbraio 03, 2009, 06:58:25 pm »
Grazie a tutti ragazzi....appena ho ho un 5 minuti provo e vi faccio sapere ;)

sneak

  • Sr. Member
  • ****
  • Post: 304
    • Mostra profilo
    • ~sneak
Re:come fare a connettere internet key alla saponetta?
« Risposta #5 il: Febbraio 08, 2009, 06:49:27 pm »
Grazie a tutti ragazzi....appena ho ho un 5 minuti provo e vi faccio sapere ;)

funziona?

nonno

  • Jr. Member
  • **
  • Post: 54
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #6 il: Febbraio 14, 2009, 10:05:00 pm »
Scusatemi....ma non ho ancora potuto provare a causa del momentaneo(spero) non funzionamento della chiavetta usb....appena risolto provo e vi faccio sapere

facs

  • Hero Member
  • *****
  • Post: 716
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #7 il: Marzo 25, 2009, 09:07:03 pm »
Ho un problema a far funzionare il gprs, premetto che ho una scheda tim e uso OM2008.12, ecco gli script che uso:
Codice: [Seleziona]
/etc/ppp/gprs-connect-chat
#!/bin/sh
exec chat                                               \
        TIMEOUT         5                               \
        ECHO            ON                              \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nERROR\r'                     \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nNO CARRIER\r'                \
        ABORT           '\nNO DIALTONE\r'               \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        TIMEOUT         22                              \
        SAY             "Press CTRL-C to close the connection at any stage!"    \
        SAY             "\ndefining PDP context...\n"   \
        OK              ATH                             \
        OK              ATE1                            \
        SAY             'AT+CGDCONT=1,"IP","ibox.tim.it"'   \
        OK              ATD*99***1#                         \
        SAY             "\nOK...\n"   \
        TIMEOUT         22                              \
        SAY             "\nwaiting for connect...\n"    \
        CONNECT         ""                              \
        SAY             "\nConnected." \
        SAY             "\nIf the following ppp negotiations fail,\n"   \
        SAY             "try restarting the phone.\n"

Codice: [Seleziona]
/etc/ppp/peers/gprs
connect /etc/ppp/gprs-connect-chat
crtscts
defaultroute
disconnect /etc/ppp/gprs-disconnect-chat
ipcp-accept-local
local
noaccomp
noauth
nobsdcomp
nodetach
noipdefault
nopcomp
novj
novjccomp
show-password

Codice: [Seleziona]
/etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client        server  secret                  IP addresses
"guest"         *       "guest"                  *

oppure:
Codice: [Seleziona]
/etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client        server  secret                  IP addresses
"easyibox"         *       "easyibox"                  *

Citazione
/usr/bin/gprson
#!/bin/sh -x

identvar=$(date +%s)
ptsvar=$(dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer org.freesmartphone.GSM.MUX.AllocChannel string:$identvar | grep string | awk -F '"' '{ print $2 }')

sleep 2

echo $identvar $ptsvar
pppd $ptsvar 115200 debug call gprs

Credo che gli script siano ok ma non sono certo al 100%, purtroppo non riesco a collegarmi, ecco cosa vedo nel messages:
Codice: [Seleziona]
Mar 25 20:59:01 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/2 to virtual channel 2 for 1238011141 on /dev/ttySAC0
Mar 25 20:59:01 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:1410:extract_frames(): Logical channel 2 opened
Mar 25 20:59:04 om-gta02 daemon.notice pppd[1501]: pppd 2.4.3 started by root, uid 0
Mar 25 20:59:04 om-gta02 daemon.info pppd[1501]: Serial connection established.
Mar 25 20:59:04 om-gta02 daemon.debug pppd[1501]: using channel 5
Mar 25 20:59:04 om-gta02 daemon.info pppd[1501]: Using interface ppp0
Mar 25 20:59:04 om-gta02 daemon.notice pppd[1501]: Connect: ppp0 <--> /dev/pts/2
Mar 25 20:59:05 om-gta02 daemon.debug pppd[1501]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x89002b72>]
Mar 25 20:59:05 om-gta02 daemon.debug pppd[1501]: rcvd [LCP ConfRej id=0x1 <magic 0x89002b72>]
Mar 25 20:59:05 om-gta02 daemon.debug pppd[1501]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
Mar 25 20:59:05 om-gta02 daemon.debug pppd[1501]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
Mar 25 20:59:05 om-gta02 user.notice root: AtChat :  percentCSQ event, rssi:  18
Mar 25 20:59:05 om-gta02 user.notice root: AtChat :  N : "%CSQ:  18, 99, 2"
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: rcvd [LCP ConfReq id=0x9 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: No auth is possible
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: sent [LCP ConfRej id=0x9 <auth chap MD5> <pcomp> <accomp>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: sent [LCP ConfAck id=0xa <asyncmap 0x0>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:07 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x15 <52a469490e57fce3b56494fc494c3df60a9d11f8c85665adea00b6c23a>, name = ""]
Mar 25 20:59:10 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:10 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:10 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x16 <511e76dfc6e097500a1adea46f4fa4f744acdf594b097324df9f3f20e287e25868f751b9253b1a7097757501f2140f28d015>, name = ""]
Mar 25 20:59:13 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:13 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:13 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x17 <7095fc0494a391ad99435b07a74ede3bab9f946faf39acd1f43784>, name = ""]
Mar 25 20:59:16 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:16 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:16 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x18 <d477e8895b0508549f493b8ce3f1767f6f9c8a8c2d4b216e0388764af454d877f6d2dc0f91b465393c69553477031024a7eab59d>, name = ""]
Mar 25 20:59:19 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:19 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:19 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x19 <431bf0671d8d387a6146228378ab808a>, name = ""]
Mar 25 20:59:22 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:22 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:22 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x1a <4b8d639a97fecc9260cd48cf15c4be9dbaccd090a8f3fd78073f75020b35bf2ef1270d75>, name = ""]
Mar 25 20:59:25 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:25 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:25 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x1b <415bb6a0524ae4645bbe7136da38797fd3f5af53a3c408b684a82991df319172559b86078ca3c158b92dd9>, name = ""]
Mar 25 20:59:28 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x1c <f2976fc931db1f6227672262c7bcc3618dc8877b92041bcc51>, name = ""]
Mar 25 20:59:28 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:28 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:31 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x1d <fdaa3784eba5ece40c406426df6ca456e7c85573139b0ac9ef8d510f8d287b4031132b3abf08a117e59ac44f08a9f18af0>, name = ""]
Mar 25 20:59:31 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:31 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:34 om-gta02 daemon.debug pppd[1501]: rcvd [CHAP Challenge id=0x1e <864632752c2d615ee834f354e173f549efc76f28e8299591a9cdb2>, name = ""]
Mar 25 20:59:34 om-gta02 daemon.debug pppd[1501]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 20:59:34 om-gta02 daemon.debug pppd[1501]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 20:59:37 om-gta02 daemon.debug pppd[1501]: rcvd [LCP TermReq id=0x5 cf 0a]
Mar 25 20:59:37 om-gta02 daemon.info pppd[1501]: LCP terminated by peer (M-O^J)
Mar 25 20:59:37 om-gta02 daemon.debug pppd[1501]: sent [LCP TermAck id=0x5]
Mar 25 20:59:40 om-gta02 daemon.notice pppd[1501]: Connection terminated.
Mar 25 20:59:41 om-gta02 daemon.info pppd[1501]: Serial connection established.
Mar 25 20:59:41 om-gta02 daemon.debug pppd[1501]: using channel 6
Mar 25 20:59:41 om-gta02 daemon.info pppd[1501]: Using interface ppp0
Mar 25 20:59:41 om-gta02 daemon.notice pppd[1501]: Connect: ppp0 <--> /dev/pts/2
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (OK)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (BUSY)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (DELAYED)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (NO ANSWER)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (NO CARRIER)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (NO DIALTONE)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (VOICE)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (ERROR)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: abort on (RINGING)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: timeout set to 12 seconds
Mar 25 20:59:41 om-gta02 local2.info chat[1704]: send (\k\k\k\d+++ATH^M)
Mar 25 20:59:41 om-gta02 local2.info chat[1704]:  -- write timed out
Mar 25 20:59:41 om-gta02 local2.err chat[1704]: Failed
Mar 25 20:59:41 om-gta02 daemon.warn pppd[1501]: disconnect script failed
Mar 25 20:59:41 om-gta02 daemon.warn pppd[1501]: tcflush failed: Bad file descriptor
Mar 25 20:59:41 om-gta02 daemon.info pppd[1501]: Exit.
Mar 25 20:59:41 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:609:pseudo_device_read(): Logical channel 2 for (null) closed

Quale potrebbe essere il problema?  ???

Grazie
Distro
Flash: 2008.12
SD: QTmoko V19
+++++++[>++++++++++<-]>.<++++++++++[>+++<-]>---.++.++++++++++++++++.

facs

  • Hero Member
  • *****
  • Post: 716
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #8 il: Marzo 25, 2009, 09:13:07 pm »
AGGIORNAMENTO:
ho cambiato il file :
Codice: [Seleziona]
/etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client        server  secret                  IP addresses
*               *               *               *

Non ho più avuto l'errore sulla'utenticazione pap però la connessione è terminata:
Codice: [Seleziona]
Mar 25 21:05:28 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/2 to virtual channel 2 for 1238011528 on /dev/ttySAC0
Mar 25 21:05:28 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:1410:extract_frames(): Logical channel 2 opened
Mar 25 21:05:30 om-gta02 daemon.notice pppd[1748]: pppd 2.4.3 started by root, uid 0
Mar 25 21:05:30 om-gta02 daemon.info pppd[1748]: Serial connection established.
Mar 25 21:05:30 om-gta02 daemon.debug pppd[1748]: using channel 7
Mar 25 21:05:30 om-gta02 daemon.info pppd[1748]: Using interface ppp0
Mar 25 21:05:30 om-gta02 daemon.notice pppd[1748]: Connect: ppp0 <--> /dev/pts/2
Mar 25 21:05:31 om-gta02 daemon.debug pppd[1748]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x88f0307b>]
Mar 25 21:05:32 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ConfRej id=0x1 <magic 0x88f0307b>]
Mar 25 21:05:32 om-gta02 daemon.debug pppd[1748]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
Mar 25 21:05:32 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ConfReq id=0xd <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [LCP ConfRej id=0xd <pcomp> <accomp>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ConfReq id=0xe <asyncmap 0x0> <auth chap MD5>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [LCP ConfNak id=0xe <auth pap>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ConfReq id=0xf <asyncmap 0x0> <auth pap>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [LCP ConfAck id=0xf <asyncmap 0x0> <auth pap>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [PAP AuthReq id=0x1 user="om-gta02" password="*"]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: rcvd [PAP AuthAck id=0x1 ""]
Mar 25 21:05:33 om-gta02 daemon.notice pppd[1748]: PAP authentication succeeded
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
Mar 25 21:05:33 om-gta02 daemon.debug pppd[1748]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
Mar 25 21:05:34 om-gta02 daemon.debug pppd[1748]: rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 12 12 06 00 00 00 00 1a 04 78 00 18 04 78 00]
Mar 25 21:05:34 om-gta02 daemon.debug pppd[1748]: rcvd [LCP TermReq id=0x7 0b 1d]
Mar 25 21:05:34 om-gta02 daemon.info pppd[1748]: LCP terminated by peer (^K^])
Mar 25 21:05:34 om-gta02 daemon.debug pppd[1748]: sent [LCP TermAck id=0x7]
Mar 25 21:05:37 om-gta02 user.notice root: AtChat :  percentCSQ event, rssi:  18
Mar 25 21:05:37 om-gta02 user.notice root: AtChat :  N : "%CSQ:  18, 0, 2"
Mar 25 21:05:37 om-gta02 daemon.notice pppd[1748]: Connection terminated.
Mar 25 21:05:38 om-gta02 daemon.info pppd[1748]: Serial connection established.
Mar 25 21:05:38 om-gta02 daemon.debug pppd[1748]: using channel 8
Mar 25 21:05:38 om-gta02 daemon.info pppd[1748]: Using interface ppp0
Mar 25 21:05:38 om-gta02 daemon.notice pppd[1748]: Connect: ppp0 <--> /dev/pts/2
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (OK)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (BUSY)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (DELAYED)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (NO ANSWER)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (NO CARRIER)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (NO DIALTONE)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (VOICE)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (ERROR)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: abort on (RINGING)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: timeout set to 12 seconds
Mar 25 21:05:38 om-gta02 local2.info chat[1811]: send (\k\k\k\d+++ATH^M)
Mar 25 21:05:38 om-gta02 local2.info chat[1811]:  -- write timed out
Mar 25 21:05:38 om-gta02 local2.err chat[1811]: Failed
Mar 25 21:05:38 om-gta02 daemon.warn pppd[1748]: disconnect script failed
Mar 25 21:05:38 om-gta02 daemon.warn pppd[1748]: tcflush failed: Bad file descriptor
Mar 25 21:05:38 om-gta02 daemon.info pppd[1748]: Exit.
Mar 25 21:05:38 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:609:pseudo_device_read(): Logical channel 2 for (null) closed

lanciando lo script:
Codice: [Seleziona]
/usr/bin/gprson
+ date +%s
+ identvar=1238016490
+ dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer org.freesmartphone.GSM.MUX.AllocChannel string:1238016490
+ grep string
+ awk -F " { print $2 }
+ ptsvar=/dev/pts/2
+ sleep 2
+ echo 1238016490 /dev/pts/2
1238016490 /dev/pts/2
+ pppd /dev/pts/2 115200 debug call gprs
Serial connection established.
using channel 23
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xefcb676c>]
rcvd [LCP ConfRej id=0x1 <magic 0xefcb676c>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x36 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
sent [LCP ConfRej id=0x36 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x37 <asyncmap 0x0> <auth chap MD5>]
sent [LCP ConfNak id=0x37 <auth pap>]
rcvd [LCP ConfReq id=0x38 <asyncmap 0x0> <auth pap>]
sent [LCP ConfAck id=0x38 <asyncmap 0x0> <auth pap>]
sent [PAP AuthReq id=0x1 user="om-gta02" password="*"]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D -C> <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [LCP ProtRej id=0x8 80 fd 01 01 00 12 12 06 00 00 00 00 1a 04 78 00 18 04 78 00]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
IPCP: timeout sending Config-Requests
sent [LCP TermReq id=0x3 "No network protocols running"]
rcvd [LCP TermAck id=0x3 "No network protocols running"]
Connection terminated.
disconnect script failed
« Ultima modifica: Marzo 25, 2009, 10:35:38 pm da facs »
Distro
Flash: 2008.12
SD: QTmoko V19
+++++++[>++++++++++<-]>.<++++++++++[>+++<-]>---.++.++++++++++++++++.

facs

  • Hero Member
  • *****
  • Post: 716
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #9 il: Marzo 29, 2009, 02:03:21 am »
Sapete darmi una mano?
Grazie
Ciao
Distro
Flash: 2008.12
SD: QTmoko V19
+++++++[>++++++++++<-]>.<++++++++++[>+++<-]>---.++.++++++++++++++++.

furester

  • Hero Member
  • *****
  • Post: 1296
    • Mostra profilo
    • Xenos Blog All
Re:come fare a connettere internet key alla saponetta?
« Risposta #10 il: Marzo 29, 2009, 08:45:24 am »
Sapete darmi una mano?
Grazie
Ciao

e magari fare una paginetta sul wiki ad imperitura memoria per gli utenti a venire ..

facs

  • Hero Member
  • *****
  • Post: 716
    • Mostra profilo
Re:come fare a connettere internet key alla saponetta?
« Risposta #11 il: Aprile 16, 2009, 09:17:11 pm »
Questi sono i messaggi che vedo nel messages:
Codice: [Seleziona]
Apr 16 22:01:31 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/2 to virtual channel 2 for 1239912091 on /dev/ttySAC0
Apr 16 22:01:31 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:1410:extract_frames(): Logical channel 2 opened
Apr 16 22:01:34 om-gta02 user.info kernel: PPP generic driver version 2.4.2
Apr 16 22:01:34 om-gta02 daemon.notice pppd[902]: pppd 2.4.3 started by root, uid 0
Apr 16 22:01:35 om-gta02 local2.info chat[907]: timeout set to 10 seconds
Apr 16 22:01:35 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:38 om-gta02 user.notice root: AtChat :  percentCSQ event, rssi:  19
Apr 16 22:01:38 om-gta02 user.notice root: AtChat :  N : "%CSQ:  19, 99, 2"
Apr 16 22:01:45 om-gta02 local2.info chat[907]: alarm
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (AT^M)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (^M)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (BUSY)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (DELAYED)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (NO ANSWER)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (NO DIALTONE)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (VOICE)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (ERROR)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: abort on (RINGING)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: timeout set to 30 seconds
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (ATZ^M)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: AT^M
Apr 16 22:01:45 om-gta02 local2.info chat[907]: OK
Apr 16 22:01:45 om-gta02 local2.info chat[907]:  -- got it
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (ATE1^M)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: ^M
Apr 16 22:01:45 om-gta02 local2.info chat[907]: ^M^M
Apr 16 22:01:45 om-gta02 local2.info chat[907]: OK
Apr 16 22:01:45 om-gta02 local2.info chat[907]:  -- got it
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (AT+CFUN=1^M)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:45 om-gta02 local2.info chat[907]: ^M
Apr 16 22:01:45 om-gta02 local2.info chat[907]: ATZ^M^M
Apr 16 22:01:45 om-gta02 local2.info chat[907]: OK
Apr 16 22:01:45 om-gta02 local2.info chat[907]:  -- got it
Apr 16 22:01:45 om-gta02 local2.info chat[907]: send (AT+COPS^M)
Apr 16 22:01:46 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:46 om-gta02 local2.info chat[907]: ^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: ATE1^M^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: OK
Apr 16 22:01:46 om-gta02 local2.info chat[907]:  -- got it
Apr 16 22:01:46 om-gta02 local2.info chat[907]: send (AT+CGDCONT=1,"IP","ibox.tim.it"^M)
Apr 16 22:01:46 om-gta02 user.notice root: Modem :  LoR -> Lost reg: 0 Lac queries: 2 Ci queries: 1
Apr 16 22:01:46 om-gta02 user.notice root: Modem :  LoR -> unsticks: 3 ms=( 18755 / 25739 / 39704 )
Apr 16 22:01:46 om-gta02 user.notice root: Modem :  LoR -> bounces: 3 ms=( 1015 / 1015 / 1015 )
Apr 16 22:01:46 om-gta02 user.notice root: AtChat :  N : "+CREG: 2"
Apr 16 22:01:46 om-gta02 local2.info chat[907]: expect (OK)
Apr 16 22:01:46 om-gta02 local2.info chat[907]: ^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: AT+CFUN=1^M^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: OK
Apr 16 22:01:46 om-gta02 local2.info chat[907]:  -- got it
Apr 16 22:01:46 om-gta02 local2.info chat[907]: send (ATDT*99***1#^M)
Apr 16 22:01:46 om-gta02 local2.info chat[907]: expect (CONNECT)
Apr 16 22:01:46 om-gta02 local2.info chat[907]: ^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: AT+COPS^M^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: OK^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: ^M^M
Apr 16 22:01:46 om-gta02 local2.info chat[907]: OK^M
Apr 16 22:01:46 om-gta02 user.notice root: AtChat :  N : "+CGREG: 2"
Apr 16 22:01:57 om-gta02 user.notice root: AtChat :  T : "^Z"
Apr 16 22:01:57 om-gta02 user.notice root: Modem :  LoR -> Location changed; queryed operator.
Apr 16 22:01:57 om-gta02 user.notice root: Modem :  LoR -> Lost reg: 0 Lac queries: 3 Ci queries: 1
Apr 16 22:01:57 om-gta02 user.notice root: Modem :  LoR -> unsticks: 3 ms=( 18755 / 25739 / 39704 )
Apr 16 22:01:57 om-gta02 user.notice root: Modem :  LoR -> bounces: 3 ms=( 1015 / 1015 / 1015 )
Apr 16 22:01:57 om-gta02 user.notice root: AtChat :  N : "+CREG: 1,"6A7F","1025""
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  T : "AT+COPS=3,2"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "OK"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  T : "AT+COPS?"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "+COPS: 0,2,"22201""
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "OK"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  T : "AT+COPS=3,0"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "OK"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  T : "AT+COPS?"
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "+COPS: 0,0,"I TIM""
Apr 16 22:01:58 om-gta02 user.notice root: AtChat :  F : "OK"
Apr 16 22:02:03 om-gta02 user.notice root: AtChat :  T : "AT+CCFC=0,2"
Apr 16 22:02:12 om-gta02 user.notice root: Modem :  Started GPRS Loss-of-Registration timer.
Apr 16 22:02:12 om-gta02 user.notice root: AtChat :  N : "+CGREG: 0"
Apr 16 22:02:16 om-gta02 local2.info chat[907]: alarm
Apr 16 22:02:16 om-gta02 local2.info chat[907]: Failed
Apr 16 22:02:16 om-gta02 daemon.err pppd[902]: Connect script failed
Apr 16 22:02:16 om-gta02 local0.info /usr/sbin/gsm0710muxd[499]: gsm0710muxd.c:609:pseudo_device_read(): Logical channel 2 for (null) closed
Apr 16 22:02:16 om-gta02 daemon.info pppd[902]: Hangup (SIGHUP)
Apr 16 22:02:22 om-gta02 user.notice root: Modem :  GPRS Loss-of-Registration timer expired; reporting.
Apr 16 22:02:31 om-gta02 daemon.notice pppd[902]: Modem hangup
Apr 16 22:02:31 om-gta02 daemon.notice pppd[902]: Connection terminated.
Apr 16 22:02:46 om-gta02 daemon.notice pppd[902]: Modem hangup
Apr 16 22:02:46 om-gta02 daemon.notice pppd[902]: Connection terminated.
Apr 16 22:03:01 om-gta02 daemon.notice pppd[902]: Modem hangup
Apr 16 22:03:01 om-gta02 daemon.notice pppd[902]: Connection terminated.
Apr 16 22:04:31 om-gta02 daemon.info pppd[902]: Terminating on signal 15
Apr 16 22:04:31 om-gta02 daemon.notice pppd[902]: Modem hangup
Apr 16 22:04:31 om-gta02 daemon.notice pppd[902]: Connection terminated.
Apr 16 22:04:31 om-gta02 daemon.info pppd[902]: Exit.

 ???
Distro
Flash: 2008.12
SD: QTmoko V19
+++++++[>++++++++++<-]>.<++++++++++[>+++<-]>---.++.++++++++++++++++.