User Tools

Site Tools


doc:appunti:hardware:onda_zte_mf636

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
doc:appunti:hardware:onda_zte_mf636 [2011/09/29 17:10] – created niccolodoc:appunti:hardware:onda_zte_mf636 [2011/09/29 17:15] – [Comandi AT] niccolo
Line 58: Line 58:
 </code> </code>
  
 +===== Configurazione pppd e chatscript =====
 +
 +Se non si vuole usare un qualche moderno Network Manager (quello di Ubuntu 11.04 gestisce la chiavetta correttamente, compresa la richiesta del PIN), è possibile configurare la connessione a mano, creando i seguenti file:
 +
 +**''/etc/ppp/peers/tre''**
 +
 +<file>
 +debug
 +lock
 +hide-password
 +noauth
 +connect "/usr/sbin/chat -v -f /etc/chatscripts/tre"
 +/dev/ttyUSB2
 +115200
 +crtscts
 +defaultroute
 +usepeerdns
 +noipdefault
 +noproxyarp
 +user "tre"
 +remotename "tre"
 +persist
 +lcp-echo-interval 0
 +lcp-echo-failure 0
 +maxfail 0
 +holdoff 30
 +</file>
 +
 +**''/etc/chatscripts/tre''**
 +
 +<file>
 +# abortstring
 +ABORT BUSY
 +ABORT 'NO CARRIER'
 +ABORT 'NO DIALTONE'
 +ABORT 'NO DIAL TONE'
 +ABORT 'NO ANSWER'
 +# modeminit
 +'' ATZ
 +#OK-AT-OK  'AT+CPIN="3745"'
 +#OK-AT-OK  '\p\pAT'
 +# ispnumber
 +OK-AT-OK 'AT+CGDCONT=1,"ip","tre.it"'
 +OK-AT-OK 'ATD*99#'
 +CONNECT \d\c
 +</file>
 +
 +e infine aggiungere la seguente riga in **''/etc/ppp/chap-secrets''**:
 +
 +<file>
 +"tre"    *    "tre"    *
 +</file>
 +
 +Digitando il comando **''pon tre''** si attiva la connessione, con **''poff''** si disabilita.
doc/appunti/hardware/onda_zte_mf636.txt · Last modified: 2011/09/29 17:28 by niccolo