Lifebook + Ubuntu + Irda + Siemens CX65 + DNA Gprs = Internet

Olen lähdössä reissuun ja päätin laittaa gprs-yhteydet kuntoon. Operaatio oli jopa hieman kivuttomampi kuin uskalsin odottaa.

Esiksi tulee asentaa apt-get:llä tarvittavat paketit.

apt-get install irda-utils setserial wvdial

Sitten on vuorossa irda:n konfigurointi ubuntussa:
cat /etc/modprobe.d/irda-utils

  1. Other aliases are defined in the modules themselves
    alias char-major-10-187 irnet
  1. For FIR device
  1. Module name has changed for this device, so this is a compatibility hack
  2. that the user can select the name used for 2.4 when really using 2.6
    install smc-ircc /sbin/modprobe smsc-ircc2
    install toshoboe /sbin/modprobe donauboe

#options

#alias irda0
alias irda0 ircomm-tty


Ja sama ircomm-tty tulee lisätä myös /etc/modules:iin

sitten ajetaan komennot:

depmod -a
modprobe irda0
/etc/init.d/irda-utils start

Irdan toimivuutta voi ihmetellä komennolla irdadump, joka antaa tämän suuntaista outputtia jos kännykkä on löytynyt.
04:03:21.505523 xid:rsp dc039e8d < 05128320 S=6 s=1 SIEMENS CX65 hint=b124 [ PnP Modem Fax IrCOMM IrOBEX ] (29)

Seuraavaksi pitää konfiguroida ppp-yhteys. Tähän käytin wvdial-ohjelmaa, mutta ppp-tools ym. ovat myös vaihtoehto.
root@topbox:/# cat /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ircomm0
Baud = 9600
Init1 = ATZ
Init2 = AT+CGDCONT=1,”IP”,”internet”
Password = “”
Username = “”
Phone = 99**1#
ISDN = 0
Modem Type = Analog Modem

[Dialer shh]
Init3 = ATM0


Tässä dna-spesifisiä asetuksia ovat Init2 ja puhelinnumero. Myös käyttäjätunnus- ja salasana kentät tulee olla tyhjiä.

Lopuksi ajetaan wvdial-komento joka muodostaa yhteyden.

root@topbox:/etc/ppp/peers# wvdial—> WvDial: Internet dialer version 1.54.0—> Initializing modem.—> Sending: ATZ
ATZ
OK—> Sending: AT+CGDCONT=1,”IP”,”internet”
AT+CGDCONT=1,”IP”,”internet”
OK—> Modem initialized.—> Sending: ATDT*99***1#—> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@}#} }9}”}&} }*} } }’}”}(}”}%}&&}8}8?}#}%B#}%`i~—> Carrier detected. Waiting for prompt.
~[7f]}#@}#} }9}”}&} }*} } }’}”}(}”}%}&&}8}8?}#}%B#}%`i~—> PPP negotiation detected.—> Starting pppd at Thu Nov 3 06:09:06 2005—> pid of pppd: 12209—> Using interface ppp0—> local IP address 62.78.104.7—> remote IP address 62.78.104.7—> primary DNS address 217.78.192.22—> secondary DNS address 217.78.192.78

Tämä postaus on muuten tehty gprs-yhteyden yli. Ja toivon että joku tästäkin informaatiosta joskus hyötyy – siksi se täällä on. Iloista mobiilisurffausta!


No Comments »

No comments yet.

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image