Size: 5429
Comment:
|
Size: 6028
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Hyvin keskeneräinen ohje. Toimii aluksi itselleni muistilistana. Kun saan homman toimimaan kunnolla teen kunnollisen ohjeen. Näillä asetuksilla olen saanut Kubuntu Edgyn nettiin käyttäen Nokia N70:tä Saunalahden liittymällä. | Hyvin keskeneräinen ohje. Toimii aluksi itselleni muistilistana. Kun saan homman toimimaan kunnolla teen kunnollisen ohjeen. Näillä asetuksilla olen saanut Kubuntu Edgyn nettiin käyttäen Nokia N70:tä Saunalahden liittymällä. Olen testannut homman toimivaksi sekä bluetoothin, että kännyn mukana tulleen usb-kaapelin kanssa. |
Line 5: | Line 5: |
Mac osoite {{{ hcitool scan }}} RFCOMM:n kanava (channel) {{{ sdptool browse 00:15:A0:7A:1D:5A }}} Etsi kohta |
== Mac-osoite ja Dial-Up:n kanava == Nämä pitää selvittää jotta voidaan käyttää oikeaa laitetta ja oikeaa palvelua. === Mac-osoite === {{{ $ hcitool scan }}} esim. {{{ 00:15:A0:7A:1D:5A Epelin N70 }}} === Dial-Up:n kanava (RFCOMM) === {{{ $ sdptool browse 00:15:A0:7A:1D:5A }}} Esim. |
Line 33: | Line 42: |
Ota RFCOMM:n kanava ylös "'''Channel: 3'''". '''/etc/bluetooth/rfcomm.conf''' |
Kolmonen tässä tapauksessa. == Bluetooth asetukset == Muokkataan '''/etc/bluetooth/rfcomm.conf''' -tiedostoa |
Line 46: | Line 57: |
# # Eli tähän se kanavan numero | |
Line 54: | Line 64: |
sudo /etc/init.d/bluetooth restart | $ sudo /etc/init.d/bluetooth restart |
Line 62: | Line 72: |
Tähän tuleee operaattori asetukset. Itse löysin googlaamalla aika munkilla toimivat asetukset Saunalahtea varten. Katso linkit. | |
Line 188: | Line 199: |
sudo chmod +x /etc/ppp/3g-* | $ sudo chmod +x /etc/ppp/3g-* |
Line 194: | Line 205: |
sudo pon 3g | $ pon 3g |
Line 199: | Line 210: |
Ctrl+C:llä voi katkaista yhteyden. | Ctrl+C:llä voi katkaista yhteyden. Kännykän (Nokia N70) Connection mangerilla voi seurata yhteyden käyttöä. Näyttää mm. sen hetkiset down/up nopeudet ja siirretyn datamäärän. |
Line 203: | Line 214: |
== Linkkejä == | == Linkkejä (lähteet) == |
Matkapuhelin modeemina
Hyvin keskeneräinen ohje. Toimii aluksi itselleni muistilistana. Kun saan homman toimimaan kunnolla teen kunnollisen ohjeen. Näillä asetuksilla olen saanut Kubuntu Edgyn nettiin käyttäen Nokia N70:tä Saunalahden liittymällä. Olen testannut homman toimivaksi sekä bluetoothin, että kännyn mukana tulleen usb-kaapelin kanssa.
- Parita ensin laite koneen kanssa
Mac-osoite ja Dial-Up:n kanava
Nämä pitää selvittää jotta voidaan käyttää oikeaa laitetta ja oikeaa palvelua.
Mac-osoite
$ hcitool scan
esim.
00:15:A0:7A:1D:5A Epelin N70
Dial-Up:n kanava (RFCOMM)
$ sdptool browse 00:15:A0:7A:1D:5A
Esim.
Service Name: Dial-Up Networking Service RecHandle: 0x1000f Service Class ID List: "Dialup Networking" (0x1103) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 3 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Dialup Networking" (0x1103) Version: 0x0100
Kolmonen tässä tapauksessa.
Bluetooth asetukset
Muokkataan /etc/bluetooth/rfcomm.conf -tiedostoa
rfcomm0 { # Automatically bind the device at startup bind yes; # # # Bluetooth address of the device device 00:15:A0:7A:1D:5A; # # # RFCOMM channel for the connection channel 3; # # # Description of the connection comment "Nokia N70"; }
$ sudo /etc/init.d/bluetooth restart
Soittoasetukset
Luo seuraavat tiedostot
/etc/ppp/peers/3g (Saunalahti) Tähän tuleee operaattori asetukset. Itse löysin googlaamalla aika munkilla toimivat asetukset Saunalahtea varten. Katso linkit.
# Most GPRS phones don't reply to LCP echo's lcp-echo-failure 0 lcp-echo-interval 0 # Keep pppd attached to the terminal: # Comment this to get daemon mode pppd nodetach # Debug info from pppd: # Comment this off, if you don't need more info debug # Show password in debug messages show-password # Connect script: # scripts to initialize the GPRS modem and start the connection, connect /etc/ppp/3g-connect-chat # Disconnect script: # AT commands used to 'hangup' the GPRS connection. disconnect /etc/ppp/3g-disconnect-chat # Serial device to which the GPRS phone is connected: #/dev/ttyACM0 # Data cable device file /dev/rfcomm0 # Bluetooth device file # Serial port line speed 115200 # fast enough #57600 # Hardware flow control: # Use hardware flow control with cable, Bluetooth and USB but not with IrDA. crtscts # serial cable, Bluetooth and USB, on some occations with IrDA too #nocrtscts # IrDA # Ignore carrier detect signal from the modem: local # IP addresses: # - accept peers idea of our local address and set address peer as 10.0.0.1 # (any address would do, since IPCP gives 0.0.0.0 to it) # - if you use the 10. network at home or something and pppd rejects it, # change the address to something else 0.0.0.0:0.0.0.0 # pppd must not propose any IP address to the peer! noipdefault # Accept peers idea of our local address ipcp-accept-local # Add the ppp interface as default route to the IP routing table defaultroute # DNS servers from the phone: # some phones support this, some don't. usepeerdns # ppp compression: # ppp compression may be used between the phone and the pppd, but the # serial connection is usually not the bottleneck in GPRS, so the # compression is useless (and with some phones need to disabled before # the LCP negotiations succeed). novj nobsdcomp novjccomp nopcomp noaccomp noccp # The phone is not required to authenticate: noauth # Username and password: # If username and password are required by the APN, put here the username # and put the username-password combination to the secrets file: # /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP # authentication. See pppd man pages for details. user "none" password 12346 # mtu 1500 mru 1500 asyncmap 0xa0000
/etc/ppp/3g-connect-chat
exec chat \ TIMEOUT 5 \ ECHO ON \ ABORT '\nBUSY\r' \ ABORT '\nERROR\r' \ ABORT '\nNO ANSWER\r' \ ABORT '\nNO CARRIER\r' \ ABORT '\nNO DIALTONE\r' \ ABORT '\nRINGING\r\n\r\nRINGING\r' \ '' AT \ OK ATH \ OK ATE1 \ OK 'AT+CGDCONT=1,"IP","internet.saunalahti","0.0.0.0",0,0' \ OK ATD*99# \ TIMEOUT 22 \ CONNECT ""
/etc/ppp/3g-disconnect-chat
exec /usr/sbin/chat -V -s -S \ ABORT "BUSY" \ ABORT "ERROR" \ ABORT "NO DIALTONE" \ SAY "\nSending break to the modem\n" \ "" "K" "" "K" "" "K" "" \ "+++ATH" "" "+++ATH" "" "+++ATH"
$ sudo chmod +x /etc/ppp/3g-*
Yhdistäminen
$ pon 3g
Ja sitten surffaamaan
Ctrl+C:llä voi katkaista yhteyden. Kännykän (Nokia N70) Connection mangerilla voi seurata yhteyden käyttöä. Näyttää mm. sen hetkiset down/up nopeudet ja siirretyn datamäärän.
[http://forum.ubuntu-fi.org/index.php?topic=9055.0 Keskustelua aiheesta foorumilla]