ah ho capito..
nella stringa di usbdongle devi mettere tutto non solo APN, bensi la linea seguente:
AT+CGDCONT=1,"ip","tre.it"
e devi usare l'ultima versione di usbdongle
se hai modificato /etc/ppp/ip-up non ce bisogno di farlo manualmente, lo fa lui.
Forse siamo vicini alla soluzione...col comando dato alla ttyUSB3 sembra connettersi ma cadere subito...
/system/bin/pppd connect '/system/bin/chat -s -v -t5 ABORT "NO CARRIER" "" AT+CGDCONT=1,\"IP\",\"internet.wind\" OK atd*99# CONNECT ""' /dev/ttyUSB3 115200 usepeerdns noauth defaultroute nodetach debug debug debug noccp noipdefault logfile /sdcard/pppd.log
Logcat:
entered chat main--xwj----
entered chat_expect-----xwj-----
entered chat_send-----xwj-----
abort on (NO CARRIER)
entered chat_expect-----xwj-----
entered chat_send-----xwj-----
send (AT+CGDCONT=1,"IP","internet.wind"^M)
entered chat_expect-----xwj-----
expect (OK)
^M
OK
-- got it
entered chat_send-----xwj-----
send (atd*99#^M)
entered chat_expect-----xwj-----
expect (CONNECT)
^M
^M
CONNECT
-- got it
entered chat_send-----xwj-----
send (^M)
Serial connection established.
using channel 9
Using interface ppp0
Failed to create pid file /var/run/ppp0.pid: No such file or directory
Connect: ppp0 <--> /dev/ttyUSB3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x94f43f2> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x11 <asyncmap 0x0> <auth chap MD5> <magic 0x103baa4> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x11 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x94f43f2> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x12 <asyncmap 0x0> <magic 0x103baa4> <pcomp> <accomp>]
sent [LCP ConfAck id=0x12 <asyncmap 0x0> <magic 0x103baa4> <pcomp> <accomp>]
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>]
rcvd [LCP DiscReq id=0x13 magic=0x103baa4]
rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x4 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
rcvd [IPCP ConfReq id=0x6]
sent [IPCP ConfNak id=0x6 <addr 0.0.0.0>]
rcvd [IPCP ConfRej id=0x4 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x5 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
rcvd [IPCP ConfReq id=0x7]
sent [IPCP ConfAck id=0x7]
rcvd [IPCP ConfNak id=0x5 <addr 151.83.122.42> <ms-dns1 212.52.97.25> <ms-dns3 193.70.152.25>]
sent [IPCP ConfReq id=0x6 <addr 151.83.122.42> <ms-dns1 212.52.97.25> <ms-dns3 193.70.152.25>]
rcvd [IPCP ConfAck id=0x6 <addr 151.83.122.42> <ms-dns1 212.52.97.25> <ms-dns3 193.70.152.25>]
Could not determine remote IP address: defaulting to 10.64.64.64
Failed to create /etc/ppp/resolv.conf: Read-only file system
local IP address 151.83.122.42
remote IP address 10.64.64.64
primary DNS address 212.52.97.25
secondary DNS address 193.70.152.25
Script /etc/ppp/ip-up started (pid 2845)
Script /etc/ppp/ip-up finished (pid 2845), status = 0x0
rcvd [LCP TermReq id=0x14]
LCP terminated by peer
Connect time 0.1 minutes.
Sent 0 bytes, received 0 bytes.
Script /etc/ppp/ip-down started (pid 2853)
sent [LCP TermAck id=0x14]
Modem hangup
Connection terminated.
Script /etc/ppp/ip-down finished (pid 2853), status = 0x0
Edit:disattivando la connessione dati dal menu e modificando la stringa togliendo ABORT "NO CARRIER" ora sembra andare alla grande.ho tolto il no carrier perche in qualche tentativo nel file di log avevo letto ABORT (NO CARRIER).
La connessione dati disattivata a tentativi per la scritta modem hungup...
Ultima modifica di danyel980; 31-12-11 alle 15:16
ok nel 2012farò una nuova versione per utilizzare anche gli altri ttyUSB e per salvare la stringa APN per non doverla inserire ogni volta.. per ora buon anno.
danyel980 (31-12-11)
Ryo (01-01-12)