7.2 GPRS

General Packet Radio Service (GPRS) is a data service that supplements other data services such as Circuit Switched Data (CSD, used for data and fax calls on GSM networks) and Short Message Service (SMS). The design of GPRS was informed by the fact that wireless data communications are bursty in nature. That is, the data is not sent in one long stream, but rather in short bursts. Traditional use of CSD, such as the Wireless Application Protocol (WAP) for data transfer, requires establishing connections between two communicating parties, which occupies bandwidth even when not transmitting data. With GPRS, data is sent as packets as and when required, so you can have always-on connectivity without having to pay for the time you're online; providers can bill customers based on usage instead.

In this section, we take a closer look at how GPRS works, and discuss some of the devices that you can use on the road.

GPRS and 3G

3G wireless (or Third-Generation wireless) is an initiative to provide enhanced voice, text, and data services. The main draw of 3G networks is the vastly increased data transfer rate of between 384 Kbps and 2 Mbps. With these speed improvements, applications that support real-time video and high-quality multimedia elements can be deployed.

However, deploying 3G networks is not an overnight affair. It requires heavy investment from wireless carriers, as well as from telephone and modem manufacturers. Another issue is the allocation of the wireless spectrum in the United States. The FCC has very strict rules on how much radio spectrum is available to each carrier in any given market, and 3G technology takes significantly more radio spectrum to implement. Rollouts of 3G services will be slowed due to this policy. In the midst of waiting for the next generation wireless networks, GPRS bridges the gap between the current 2G networks (such as GSM or TDMA) and the forthcoming 3G networks. As such a stopgap, GPRS is commonly known as 2.5G.

3G networks being built today use UMTS/WCDMA, which is backed by the largest vendors of telecommunications equipment and large players such as AT&T Wireless, NTT DoCoMo, and others.

In the United States today you can get wireless Internet access over UMTS from a handful of small wireless networks in parts of Montana, Hawaii, and other places. These networks do not support voice calling; they were built only for rapid deployment of wireless Internet access via UMTS.

7.2.1 GSM Networks and GPRS

GPRS is a packet-switched service built on the existing Global System for Mobile (GSM) communication voice network. GSM was designed primarily for voice services.

A GSM channel contains eight timeslots (portions of time allocated to transmit data), with each timeslot dedicated to each circuit-switched call. Traditionally, you can use a maximum of only one timeslot when using CSD. With GPRS, timeslots can be assigned dynamically, and you can use more than one timeslot. This results in increased throughput.

GSM networks have more worldwide coverage than any other cellular technologies, such as CDMA and PDC (Personal Digital Cellular, used in Japan). In Asia and Europe, the frequencies used for GSM are 900 and 1800 MHz. In North America, it is 1900 MHz. Phones that support all three frequencies are known as tri-band or "World" phones. Examples of tri-band phones are the Sony Ericsson T610 and the Nokia 3650. (see Figure 7-1 and Figure 7-2).

Figure 7-1. The Sony Ericsson T68i
Figure 7-2. The Nokia 3650

7.2.2 How GPRS Works

GPRS uses multiple timeslots for sending data. In theory, GPRS can use up to eight timeslots, but physical constraints (such as the number of users currently on the network, as well as the coverage quality) have reduced the number to a maximum of five, with one or two timeslots reserved for upstream communications (leaving three or four for downloads). There are four coding schemes used in GPRS networks. Table 7-2shows these, their data rate per timeslot, and the maximum data speed for eight timeslots.

Table 7-2. Coding schemes used in GPRS

Channel coding scheme

Data rate per timeslot

Top data speed with eight timeslots


9.05 Kbps

72.4 Kbps


13.4 Kbps

107.2 Kbps


15.6 Kbps

124.8 Kbps


21.4 Kbps

171.2 Kbps

The coding scheme is determined by the service provider and depends on factors such as the quality of the channel (the radio link between the phone and the base station). CS-1 has the highest reliability (but the lowest data rate), and CS-4 has the least reliability (but the highest data rate).

Each phone has a certain number of timeslots used for downloading and uploading. The manufacturer of the phone determines the number of timeslots. For example, the Sony Ericsson T68i has four timeslots allocated for downloads, and one for uploads, so it's called a 4+1 device. With the CS-1 coding scheme, the maximum download speed would be 36.2 Kbps (9.05 Kbps x 4). The Nokia 3650 is a 3+2 device. With the CS-2 coding scheme, the maximum download speed would be 40.2 Kbps (13.4 Kbps x 3).

What if a phone call comes in while you are connected to the Internet? Most phones will only let you do one thing at a time, and answering a phone call will put your GPRS connection on hold until you are done with the call.

7.2.3 GPRS Phones

You can use a GPRS-enabled phone (like the Sony Ericsson T610 and the Nokia 3650) to access WAP sites (a mostly text version of the Web) on your mobile phone. You can also view full web sites, if your phone's browser supports it; if not, you may be able to find a third-party web browser for your phone at http://www.handango.com. You can also connect your Macintosh to your mobile phone (through Bluetooth or infrared) and use it as a modem. SIM cards

A SIM is a smart card placed inside a GSM phone that identifies the user account to the network. It handles tasks such as authentication and acts as data storage for user data such as phone numbers, SMS messages, and network information. Figure 7-3 shows a SIM card inserted into a mobile phone. A SIM card may also contain applications that run on the phone.

Figure 7-3. A SIM card inserted into a mobile phone

7.2.4 Configuring a Bluetooth-Enabled Mobile Phonefor GPRS Access

If you have a Bluetooth-enabled mobile phone, such as the Sony Ericsson T68i or Nokia 3650, you can set it up as a Bluetooth modem. In this section, we will show you how to wirelessly connect your Mac to the Internet using GPRS. Before you begin, ensure that your Mac is Bluetooth-enabled. See Chapter 6 for more information about Bluetooth.

  1. Go to the Bluetooth icon (on the menu bar) and select "Set up Bluetooth Device...," as shown in Figure 7-4.

Figure 7-4. Setting up a Bluetooth device
  1. The Bluetooth Setup Assistant window will appear. Select the device you want to set up (Mobile Phone) and click Continue.

  2. Set your Bluetooth-enabled mobile phone to discovery mode.

  3. When your mobile phone is found, Bluetooth Setup Assistant will show the name of your mobile phone. Select the phone and click Continue.

  4. You will be asked to supply a passkey to pair up your Mac with the mobile phone. Ensure that you enter the same passkey on your phone.

  5. You will also be asked to select the services that you want to use with your mobile phone. Select "Use data connection" to access the Internet (see Figure 7-5). Click Continue.

Figure 7-5. Configuring a mobile phone for data access
  1. You also need to supply the credentials for dialing up to your ISP (see Figure 7-6). You should consult your ISP for such information. Click Continue to complete the setup.

Figure 7-6. Entering credentials for dialing up to your ISP

Some cellular providers do not require a username or password?they only need the GPRS dialing sequence, which is typically *99*CID#, where CID is your connection ID (usually 1, as in *99*1#). This uses one of the connections defined on your phone. The modem scripts available from Ross Barkman's page (http://www.taniwha.org.uk/gprs.html) let you specify your cellular provider's GPRS access point as a telephone number (and you won't need to specify the CID string). That page also includes a list of access point names (APNs) for major cellular providers across the world.

  1. You can dial the connection by going to System Preferences and selecting Network. Under the Show pop-up menu, select USB Bluetooth Modem Adapter. Click on "Dial Now..." to dial the connection (see Figure 7-7).

Figure 7-7. Dialing the Bluetooth data connection
  1. You can also dial the connection by going directly to Internet Connect (located in the Applications folder) and clicking Connect (see Figure 7-8).

Figure 7-8. Using Internet Connect to dial the Bluetooth data connection
  1. Once established, you should see the status of the connection (see Figure 7-9).

Figure 7-9. Viewing the status of the Bluetooth connection
  1. Launch your Web browser and see if you can connect to the Internet!

You can also connect your cell phone to the Internet via your Mac's Blutooth connection. If you don't have a data plan (or have a limited data plan and want to save on usage charges), use C.K. Sample III's Share2Blue2th AppleScripts, available from http://3650anda12inch.blogspot.com/, to set up your computer as a GPRS access point over Bluetooth. This option allows you to use web browsers and services such as AvantGo (which downloads content optimized for your phone) without a data plan?you can simply sync when within Bluetooth range of your computer. Installation and configuration of the scripts is beyond the scope of this book, but we recommend giving them a try if you want to share an existing broadband Internet connection with your Bluetooth phone.

7.2.5 Dialing an ISP with a Bluetooth-Enabled Mobile Phone

Circuit Switched Data (CSD) is a plain-vanilla way to transfer data using a circuit switching technique. It is like making a voice call between two parties?you have to establish a connection first. Once you are connected, you can start talking. With CSD, you're charged by the minute. CSD allows a data rate of 9.6 Kbps to 14.4 Kbps.

High Speed Circuit Switched Data (HSCSD) is the same as CSD except that its data rate is much higher?up to 43.2 Kbps is possible.

Compared to CSD, GPRS charges are usually billed based on the data actually transferred, not by connection time. However, some providers offer very limited GPRS service. For example, it would not be unusual to get 500 to 1000 voice minutes per month for $40 but to get only 20 MB of data for another $40. So, when you run out of megabytes at GPRS speeds (around 40 Kbps), you can switch over to dialing into a dial-up ISP or your workplace at CSD speeds, at which point you start using up your voice minutes (and whatever fees your ISP charges). Note that some U.S. providers do not permit CSD calls. For example, as of this writing, it is impossible to initiate a CSD call with AT&T Wireless's GSM service.