Acesso ad internet con TIM e WIND tramite Motorola V360
Introduzione
La configurazione per l'accesso dial UP tramite cellulare può essere effettuata tramite pppconfig. Tuttavia ho trovato qualche difficoltà ad ottenere degli script funzionanti, forse per la difficoltà dello script nel gestire gli apici delle stringhe di configurazione; ho dovuto quindi ritoccarli a mano. A scanso di equivoci riporto integralmente i miei script in modo da rendere facili le cose a chi dovesse aver avuto problemi analoghi.
Hardware
Il rilevamento dell'hardware è automatico. Infatti il Motorola V360, se connesso ad una porta USB, viene immedatamente rilevato. Unica caratteristica da tenere presente è che tale dispositivo ha una sua propria configurazione (menu:Impostazioni->Connessione->Impostazioni USB) per decidere se dovrà apparire come una memoria esterna o come un terminale dati/fax. Quando è settato come memoria esterna ed è fornito di scheda transflash aggiuntiva lo si può usare , ad esempio, per scaricarci la musica: Ubuntu lo riconosce perfettamente. Quando è settato come terminale dati allora Ubuntu lo rileva come se fosse una porta seriale e lo mappa, in genere, come /dev/ttyACM0. Cio detto la configurazione sarebbe abbastanza semplice, con pppconfig, se non fosse per qualche problemino di interpretazione della stringa di setup per il collegamento GSM/GPRS/EDGE che deve quindi venire ritoccata.
Bluetooth
Io uso un adattatore bluetooth USB della SITECOM, il CN-512. Comune ed ecomonico. Questo viene perfettamente riconosciuto da UBUNTU. Una volta inserito nel PC bisogna semplicemente mappare la porta seriale bluetooth del telefono su di un dispositivo locale.BR
A tale proposito sono utili alcuni comandi:BR
$hcitool inq -> cerca i dispositivi bluetooth raggiungibili
$sdptool search DUN -> cerca i dispositivi dial-up raggiungibili, indica l'<address> ed il canale <channel> del dispositivo
$rfcomm -> dà lo stato della periferica di collegamento
$rfcommm bind rfcomm0 <address> <channel> -> crea una connessione tra il dispositivo ed il device /dev/rfcomm0
La configurazione di BLUETOOTH è ben spiegata qui:BR http://wiki.ubuntu-it.org/modemGPRSbluetooth?highlight=%28bluetooth%29
SCRIPT DI CONFIGURAZIONE
FILES Script per connettersi a WIND tramite USB col cellulare motorola V360BR
/etc/ppp/peers/TIMBR
# This optionfile was generated by pppconfig 2.3.11. BR # BR #BR hide-password BR noauthBR connect "/usr/sbin/chat -v -f /etc/chatscripts/TIM"BR debugBR /dev/ttyACM0BR 115200BR defaultrouteBR noipdefaultBR user "tim"BR remotename TIMBR ipparam TIMBR BR usepeerdnsBR
/etc/chatscripts/TIMBR
# This chatfile was generated by pppconfig 2.3.11.BR # Please do not delete any of the comments. Pppconfig needs them.BR # BR # ispauth PAPBR # abortstringBR ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYEDBR # modeminitBR AT+cgdcont=1,"IP","ibox.tim.it";BR # ispnumberBR OK-AT-OK "ATD*99#"BR # ispconnectBR CONNECT \d\cBR # preloginBR BR # ispnameBR # isppasswordBR # postloginBR BR # end of pppconfig stuffBR BR BR FILES Script per connettersi a WIND tramite USB col cellulare motorola V360BR /etc/ppp/peers/WINDBR # This optionfile was generated by pppconfig 2.3.11. BR # BR #BR hide-password BR noauthBR connect "/usr/sbin/chat -v -f /etc/chatscripts/WIND"BR debugBR /dev/ttyACM0BR 115200BR defaultrouteBR noipdefault BR user "xxxxlibero.it"BR remotename WINDBR ipparam WINDBR usepeerdnsBR /etc/chatscripts/WINDBR # This chatfile was generated by pppconfig 2.3.11.BR # Please do not delete any of the comments. Pppconfig needs them.BR # BR # ispauth PAPBR # abortstringBR ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYEDBR # modeminitBR
FILES Script per connettersi a WIND tramite bluetooth (sitecom CN-512 USB) col cellulare motorola V360BR
/etc/ppp/peers/WIND_BTBR
# This optionfile was generated by pppconfig 2.3.11. BR # BR #BR hide-password BR noauthBR connect "/usr/sbin/chat -v -f /etc/chatscripts/WIND_BT"BR debugBR /dev/rfcomm0BR #115200BR 230400BR defaultrouteBR noipdefault BR user "xxxxlibero.it"BR remotename WIND_BTBR ipparam WIND_BTBR BR usepeerdnsBR
/etc/chatscripts/WIND_BTBR
# This chatfile was generated by pppconfig 2.3.11.BR # Please do not delete any of the comments. Pppconfig needs them.BR # BR # ispauth PAPBR # abortstringBR ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYEDBR # modeminitBR AT+cgdcont=1,"IP","internet.wind";BR # ispnumberBR OK-AT-OK "ATD*99#"BR # ispconnectBR CONNECT \d\cBR # preloginBR BR # ispnameBR # isppasswordBR # postloginBR # end of pppconfig stuffBR