arch-wiki-md-repo
Version:
All arch-wiki articles in markdown format, updated every two days.
169 lines (130 loc) • 4.03 kB
Markdown
* [1 Common settings](
* [1.1 DKU2 cable](
* [2 GPRS](
* [2.1 DKU2](
* [2.2 Bluetooth](
* [3 Backup/restore phonebook](
* [3.1 Backup](
* [3.2 Restore](
[](/index.php/Install "Install") the [gnokii](https://www.archlinux.org/packages/?name=gnokii) package.
* Edit /etc/gnokiirc
```
[]
port = 1
model = series40
initlength = default
connection = dku2libusb
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[]
bindir = /usr/sbin/
[]
TELEPHONE = 12345678
[]
[]
debug = off
rlpdebug = off
xdebug = off
```
In this sample libusb used as recommended.
* Add cdc-acm module into rc.conf or load it manualy (needed for GPRS)
## GPRS
**NOTE**: Of course you should edit following files and adjust your provider settings.
### DKU2
**pppd peer file** (in /etc/ppp/peers/)
```
/dev/ttyUSB0 57600
connect '/usr/sbin/chat -v -f /etc/ppp/peers/mts-gprs-dialup.chat'
noauth
defaultroute
lock
debug
novjccomp
nopcomp
noaccomp
nodeflate
novj
nobsdcomp
default-asyncmap
ipcp-accept-local
ipcp-accept-remote
usepeerdns
user mts
nodetach
```
**chat file**
```
TIMEOUT 5
ECHO ON
ABORT '
BUSY\r'
ABORT '
ERROR\r'
ABORT '
NO ANSWER\r'
ABORT '
NO CARRIER\r'
ABORT '
NO DIALTONE\r'
ABORT '
RINGING\r
\r
RINGING\r'
'' \rAT
TIMEOUT 12
OK ATH
OK ATE1
OK AT+CGDCONT=1,"IP","internet.mts.ru"
OK ATD*99***1
CONNECT
```
**Command** to establish internet connection
```
pppd call <peer-file-name>
```
**chat file** is the same as in DKU2 example
**pppd peer file** (in /etc/ppp/peers/)
```
/dev/rfcomm0 57600
connect '/usr/sbin/chat -v -f /etc/ppp/peers/mts-gprs-dialup.chat'
noauth
defaultroute
lock
debug
novjccomp
nopcomp
noaccomp
nodeflate
novj
nobsdcomp
default-asyncmap
ipcp-accept-local
ipcp-accept-remote
usepeerdns
user beeline
nodetach
```
**Commands** to establish internet connection
```
rfcomm bind rfcomm0 <BT-ADDR> 1
pppd call <peer-file-name>
```
Use command
```
gnokii --getphonebook ME 1 end -r >phonebook-`date +%Y%m%d`.raw
```