GPRS FSO

From Openmoko

Revision as of 19:59, 8 August 2008 by Fwendt (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page documents the GSM networking solutions (commonly known as GPRS) using the FreeSmartphone.Org framework (FSO).

There are other ways to enable wireless communications on the smartphone, including Bluetooth and WLAN.

Current state

Since milestone 2 the system dbus has been extended with methods that enables connectivity using GPRS. The functionality is available under org.freesmartphone.frameworkd at /org/freesmartphone/GSM/Device.

The implementation should not interfer with other phone functionality, such as placing calls. In other words: you can use GPRS while talking on the phone without hanging up.

Currently, there's no GUI available but it's fairly easy to use the methods available using any dbus tool.

Until there's a GUI

While we wait for the preferences part of FSO to be completed (and a GUI), we can use two shell scripts. You need to know three things to successfully connect via GPRS (your carrier should provide this information to you):

  • the APN to use,
  • the username, and
  • the password.

To connect, put the following in a file and make it executable (chmod +x gprs-on.sh):

 #!/bin/sh
 APN="internet.parlino.se"
 USERNAME="x"
 PASSWORD="x"
 BUSNAME="org.freesmartphone.frameworkd"
 OBJECTPATH="/org/freesmartphone/GSM/Device"
 METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext"
 mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN $USERNAME $PASSWORD

To disconnect, use the following method instead (chmod +x gprs-off.sh):

 #!/bin/sh
 BUSNAME="org.freesmartphone.frameworkd"
 OBJECTPATH="/org/freesmartphone/GSM/Device"
 METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext"
 mdbus -s $BUSNAME $OBJECTPATH $METHODNAME

The on script, using the ActivateContext method, will:

  • setup a ppp interface (normally ppp0) (and assign IP address)
  • sutup (replace) the default route
  • setup DNS

with settings received from the ISP.

For a list of known APN:s, see the main GPRS page.

Personal tools

This page documents the GSM networking solutions (commonly known as GPRS) using the FreeSmartphone.Org framework (FSO).

There are other ways to enable wireless communications on the smartphone, including Bluetooth and WLAN.

Current state

Since milestone 2 the system dbus has been extended with methods that enables connectivity using GPRS. The functionality is available under org.freesmartphone.frameworkd at /org/freesmartphone/GSM/Device.

The implementation should not interfer with other phone functionality, such as placing calls. In other words: you can use GPRS while talking on the phone without hanging up.

Currently, there's no GUI available but it's fairly easy to use the methods available using any dbus tool.

Until there's a GUI

While we wait for the preferences part of FSO to be completed (and a GUI), we can use two shell scripts. You need to know three things to successfully connect via GPRS (your carrier should provide this information to you):

  • the APN to use,
  • the username, and
  • the password.

To connect, put the following in a file and make it executable (chmod +x gprs-on.sh):

 #!/bin/sh
 APN="internet.parlino.se"
 USERNAME="x"
 PASSWORD="x"
 BUSNAME="org.freesmartphone.frameworkd"
 OBJECTPATH="/org/freesmartphone/GSM/Device"
 METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext"
 mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN $USERNAME $PASSWORD

To disconnect, use the following method instead (chmod +x gprs-off.sh):

 #!/bin/sh
 BUSNAME="org.freesmartphone.frameworkd"
 OBJECTPATH="/org/freesmartphone/GSM/Device"
 METHODNAME="org.freesmartphone.GSM.PDP.DeactivateContext"
 mdbus -s $BUSNAME $OBJECTPATH $METHODNAME

The on script, using the ActivateContext method, will:

  • setup a ppp interface (normally ppp0) (and assign IP address)
  • sutup (replace) the default route
  • setup DNS

with settings received from the ISP.

For a list of known APN:s, see the main GPRS page.