## page was renamed from WindTimV360BT
#format wiki
#LANGUAGE it
<<BR>>
<<Indice(depth=2)>>
= Introduzione =
La configurazione per l'accesso dialup tramite cellulare può essere effettuata tramite '''pppconfig'''. 

In questa guida sono presenti degli script che dovrebbero aiutare a far funzionare la connessione con un '''Motorola V360'''.

= Hardware =

Il rilevamento dell'hardware è automatico. 

Infatti il '''Motorola V360''', se connesso ad una porta USB, viene immediatamente rilevato. 

Unica caratteristica da tenere presente è che tale dispositivo ha una sua propria configurazione, '''''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 =

L'adattatore bluetooth USB '''SITECOM CN-512''' viene perfettamente riconosciuto da Ubuntu. Una volta inserito nel PC bisogna semplicemente mappare la porta seriale bluetooth del telefono su di un dispositivo locale.

A tale proposito sono utili alcuni comandi:

'''$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 in questa [[Hardware/Modem/CellulareBluetooth|guida]]


= Script di configurazione =

== Script per connettersi a TIM tramite USB  ==

 * `/etc/ppp/peers/TIM`: {{{

# This optionfile was generated by pppconfig 2.3.11. [[BR]]
# [[BR]]
#[[BR]]
hide-password [[BR]]
noauth[[BR]]
connect "/usr/sbin/chat -v -f /etc/chatscripts/TIM"[[BR]]
debug[[BR]]
/dev/ttyACM0[[BR]]
115200[[BR]]
defaultroute[[BR]]
noipdefault[[BR]]
user "tim"[[BR]]
remotename TIM[[BR]]
ipparam TIM[[BR]]
[[BR]]
usepeerdns[[BR]]
}}}

 * `/etc/chatscripts/TIM`: {{{

# This chatfile was generated by pppconfig 2.3.11.[[BR]]
# Please do not delete any of the comments.  Pppconfig needs them.[[BR]]
# [[BR]]
# ispauth PAP[[BR]]
# abortstring[[BR]]
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED[[BR]]
# modeminit[[BR]]
'' AT+cgdcont=1,"IP","ibox.tim.it";[[BR]]
# ispnumber[[BR]]
OK-AT-OK "ATD*99#"[[BR]]
# ispconnect[[BR]]
CONNECT \d\c[[BR]]
# prelogin[[BR]]
[[BR]]
# ispname[[BR]]
# isppassword[[BR]]
# postlogin[[BR]]
[[BR]]
# end of pppconfig stuff[[BR]]
[[BR]]
[[BR]]
}}}

== Script per connettersi a WIND tramite USB ==

 * `/etc/ppp/peers/WIND`: {{{

# This optionfile was generated by pppconfig 2.3.11. [[BR]]
# [[BR]]
#[[BR]]
hide-password [[BR]]
noauth[[BR]]
connect "/usr/sbin/chat -v -f /etc/chatscripts/WIND"[[BR]]
debug[[BR]]
/dev/ttyACM0[[BR]]
115200[[BR]]
defaultroute[[BR]]
noipdefault [[BR]]
user "xxxxlibero.it"[[BR]]
remotename WIND[[BR]]
ipparam WIND[[BR]]

usepeerdns[[BR]]


 * `/etc/chatscripts/WIND`: {{{

# This chatfile was generated by pppconfig 2.3.11.[[BR]]
# Please do not delete any of the comments.  Pppconfig needs them.[[BR]]
# [[BR]]
# ispauth PAP[[BR]]
# abortstring[[BR]]
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED[[BR]]
# modeminit[[BR]]
'' AT+cgdcont=1,"IP","internet.wind";[[BR]]
# ispnumber[[BR]]
OK-AT-OK "ATD*99#"[[BR]]
# ispconnect[[BR]]
CONNECT \d\c[[BR]]
# prelogin[[BR]]
[[BR]]
# ispname[[BR]]
# isppassword[[BR]]
# postlogin[[BR]]
[[BR]]
# end of pppconfig stuff[[BR]]
}}}

== Script per connettersi a WIND tramite bluetooth Sitecom CN-512 USB ==

 * `/etc/ppp/peers/WIND_BT`: {{{

# This optionfile was generated by pppconfig 2.3.11. [[BR]]
# [[BR]]
#[[BR]]
hide-password [[BR]]
noauth[[BR]]
connect "/usr/sbin/chat -v -f /etc/chatscripts/WIND_BT"[[BR]]
debug[[BR]]
/dev/rfcomm0[[BR]]
#115200[[BR]]
230400[[BR]]
defaultroute[[BR]]
noipdefault [[BR]]
user "xxxxlibero.it"[[BR]]
remotename WIND_BT[[BR]]
ipparam WIND_BT[[BR]]
[[BR]]
usepeerdns[[BR]]
}}}


 * `/etc/chatscripts/WIND_BT`: {{{

# This chatfile was generated by pppconfig 2.3.11.[[BR]]
# Please do not delete any of the comments.  Pppconfig needs them.[[BR]]
# [[BR]]
# ispauth PAP[[BR]]
# abortstring[[BR]]
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED[[BR]]
# modeminit[[BR]]
'' AT+cgdcont=1,"IP","internet.wind";[[BR]]
# ispnumber[[BR]]
OK-AT-OK "ATD*99#"[[BR]]
# ispconnect[[BR]]
CONNECT \d\c[[BR]]
# prelogin[[BR]]
[[BR]]
# ispname[[BR]]
# isppassword[[BR]]
# postlogin[[BR]]

# end of pppconfig stuff[[BR]]
}}}
----
CategoryHardware CategoryInternet CategoryDaRevisionare