HPC.ru lite - Все форумы
Форум: КПК и смартфоны на Linux: Zaurus, планшеты Nokia, прочее
Тема: Настройки GPRS

[Ответить]
Buffet [29.06.2006 23:18] Настройки GPRS:
прошивка pdaXrom 1.1.0beta2

Приобрел намедни карточку Socket BT, попытался запустить гпрс, однако безрезультатно. Завр телефон находит, разговаривает с ним, но до коннекта так и не доходит. Опсос - МТС.

Может у кого успешно работает гпрс, сможет выложить здесь содержимое /etc/ppp/* ? Ну или кто-нибудь может выложить содержимое файла /etc/ppp/options, /etc/ppp/chap-secrets, /etc/ppp/pap-secrets ?

Буду премного благодарен.
Reaper [30.06.2006 00:12] :
Файл /etc/ppp/peers/BT

/dev/rfcomm0
115200
connect '/usr/sbin/chat -s -v ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "AT+CGDCONT=1,\\"IP\\",\\"internet.beeline.ru\\"" OK ATDT*99***1# CONNECT'
crtscts
noipdefault
modem
user "beeline"
usepeerdns
defaultroute
connect-delay 6000
remotename BT

Файл /etc/ppp/ip-up

#!/bin/sh
#
# The pppd executes this script every time a PPP connection comes
# up and passes the following args to it:
#
# $1 device
# $2 tty
# $3 speed
# $4 local IP addr
# $5 remote IP addr
#
# You can then execute special commands (like adding routes)
# depending on the arguments passed by the pppd.
#
#if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
if [ -f /etc/ppp/resolv.conf ]; then
rm -f /etc/ppp/resolv.prev
if [ -f /etc/resolv.conf ]; then
cp /etc/resolv.conf /etc/ppp/resolv.prev
grep domain /etc/ppp/resolv.prev > /etc/resolv.conf
grep search /etc/ppp/resolv.prev >> /etc/resolv.conf
cat /etc/ppp/resolv.conf >> /etc/resolv.conf
else
cp /etc/ppp/resolv.conf /etc
fi
fi

Из каталога bluetooth

Файл bt-uart.conf

"Socket", "CF+ Personal Network Card Rev 2.5":/dev/ttyS3 bcsp 230400
"Bluetooth BT0100M", "", "":/dev/ttyS3 bcsp
"Compact Flash", "Bluetooth Card", "", "":/dev/ttyS3 bcsp:/dev/ttyS3 baud_base 921600
"UBIQUAM", "UM100 CDMA CF Card", "", ""::/dev/ttyS4 baud_base 921600

Файл hcid.conf

#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#

# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# PIN helper
pin_helper /bin/bluepin;
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ (%d)";

# Local device class
class 0x120114;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
iscan enable; pscan enable;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park;

# Authentication and Encryption
#auth enable;
#encrypt enable;
}

Файл rfcomm.conf (у Вас будет другой, т.к. другая карточка, хотя и той же самой модели)

rfcomm0 {
bind yes;
device 00:11:9F:BE:07:84;
channel 1;
comment "Generated by BT dial-up network applet.";
}

Файл pin

1234

На самом деле главная хитрость состоит в получении уникального кода доступа от телефона, который записывается в файл link_key . Мне это сделал Антон (большое ему спасибо) где-то сильно больше года назад, с тех пор храню содержимое каталога bluetooth как некую великую реликвию - сам я так не смогу.
Buffet [30.06.2006 00:23] :
Reaper, спасибо. А как насчет /etc/ppp/chap-secrets, /etc/ppp/pap-secrets ?
Darkcat [30.06.2006 00:23] :
Можно посмотреть на ББ...
Reaper [30.06.2006 10:03] :
chap-secrets

# Secrets for authentication using CHAP
# client server secret IP addresses

pap-secrets

# Secrets for authentication using PAP
# client server secret IP addresses

Ничего сложного.
[Ответить]