FreeBSD 6.1+motorola c350+gprs (У кого есть информация)

FreeBSD, NetBSD, OpenBSD, DragonFly и т. д.

Модератор: arachnid

Аватара пользователя
TnT
Сообщения: 42

FreeBSD 6.1+motorola c350+gprs

Сообщение TnT »

У кого есть опыт скрещивания? Насколько я понимаю, проблема в том, что моторола использует подключение без эмуляции usb, напрямую. Получить что-то более вразумительное чем сообщения об определении девайса ugen0 не получалось. Если есть идеи или ссылки просьба поделиться. Система - freebsd 6.1
Спасибо сказали:
Аватара пользователя
killdos
Сообщения: 187
Статус: Cклеротик
ОС: FreeBSD, NetBSD, винда

Re: FreeBSD 6.1+motorola c350+gprs

Сообщение killdos »

для всех моторол

Код: Выделить всё

#kldload umodem.ko

/boot/loader.conf

Код: Выделить всё

umodem_load="YES"

/etc/rc.conf

Код: Выделить всё

usbd_enable="YES"

/etc/ppp/options

Код: Выделить всё

# Change this line to 'defaultroute' if you want to use the GPRS link
# as your gateway.
defaultroute

# Comment this line out to let pppd background itself.
nodetach

# Turn this on to see all the PPP negotiations
debug

# *** Below this line you probably won't need to change.

# Limit the MTU (workaround for an oddity in the VPN)
mtu 1400

# Use hardware flow conrtrol
nocrtscts

# Let the phone figure out all the IP addresses
noipdefault
ipcp-accept-local
ipcp-accept-remote

# No ppp compression
novj
novjccomp
nobsdcomp

# For sanity, keep a lock on the serial line
lock

/etc/ppp/ppp.conf

Код: Выделить всё

default:
        set log Phase Chat LCP IPCP CCP tun command
        ident user-ppp VERSION (built COMPILATIONDATE)
        set device /dev/cuaU0

        set speed 115200
        set timeout 120
        enable dns

megafon:
        set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT  5 \"\" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\"IP\",\"ВАШ_APN_ЗДЕСЬ\" OK AT+CGATT=1 OK \\dATDT\\T TIMEOUT 120 CONNECT"
        set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \"\" +++ATH OK-ATH-OK AT+CGATT=0 OK"

        set phone *99\#
        set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
        add default HISADDR

теперь чтобы позвонить, надо сказать ppp -ddial megafon
процесс дозвона и подключения отображается в /var/log/ppp.log
чтобы оно звонило само во время загрузки системы, в /etc/rc.conf добавляем

Код: Выделить всё

ppp_enable="YES"
ppp_profile="megafon"
ppp_mode="ddial"

слово megafon является именем профиля и придумывается пользователем.
"UNIX is simple and coherent..." (c) Dennis Ritchie, "GNU's Not UNIX" (c) Richard Stallman
Спасибо сказали: