PHARscape

  • Home
    • Search
    • Login....
  • Linux and 3G
    • Software
      • Option Software
        • Hso driver
        • Rezero
        • Nozomi driver
        • Ozerocdoff
      • PHARscape Software
        • Hsolinkcontrol
        • HSOconnect
          • Downloads
        • comgt
      • Other software
        • Gnome NetworkManager
        • Option driver
        • Usbserial driver
        • USB_modeswitch
        • UMTSmon
        • Wader
    • HOW-TOs
      • HSOconnect Fedora 9
      • HSOconnect Ubuntu 8.04
      • NetworkManager How-To
      • Older HOW-TOs
        • GlobeTrotter (GPRS) HOW-TO
        • GlobeTrotter Fusion (UMTS/WLan) HOW-TO
        • Vodafone 3G (UMTS) HOW-TO
    • APN - Access Point Name
    • Linux Basics
    • DKMS and the HSO driver
  • USB modems
    • iCon 225
    • AT&T Quicksilver
    • AT&T Velocity - GPS and Linux
    • iCon 7.2
  • Datacards
    • Vodafone E3730
    • GE441 and GE442
    • Datacards (hso.ko)
    • Nozomi HSDPA 1.8 Datacards
    • Datacards (option.ko)
    • Datacards (serial modems)
    • Archive - old product table
  • Modules
    • GTM378
  • Getting Help
    • Contact me
  • Diversions
    • Linux and 3G Blog
    • PHARspace
      • Astrophotography
        • Solar System
          • The Sun
          • Venus
          • The Moon
          • Jupiter
          • Mars
          • Saturn
          • Uranus and Neptune
          • Comets
        • Deep Sky Objects
          • Nebula
          • Galaxies
          • Globular Clusters
      • Equipment
      • SPC900 Amp-off Sandwich
      • HEQ5 NGC 7662 Webcam LX video
      • Back to PHARscape
  • The Forums -->
`
Home » Linux and 3G » HOW-TOs » Older HOW-TOs » GlobeTrotter (GPRS) HOW-TO

Getting the original Option GPRS datacard to work.

 GlobeTrotter (GPRS) HowTo

Written by Paul Hardwick   

GlobeTrotter (GPRS)

Unofficial Linux GlobeTrotter HOWTO

25/1/2006 Author: P.Hardwick paul@peck.org.uk

 


 

Table of Contents

1 Introduction..

1.1 Technical Background.

1.2 The Versions of GT..

1.3 Related HOWTOs.

2 Linux Configuration..

2.1.1 PCMCIA..

2.1.2 Installing GT fitted with firmware versions earlier than 3.4.0.

2.1.2.1 Redhat 7 8 9, SuSE 8.x,

2.1.3 Installing GT fitted with firmware versions 3.4.0 or later

2.1.3.1 Redhat 8.0 and 9.0.

2.1.3.2 Redhat 7.0 and SuSE 8.0.

2.1.3.3 SuSE 8.1, 8.2.

2.1.3.4 The Solution.

2.1.4 Alternative solutions.

2.2 Configuring PPPD..

2.3 Using chat

2.4 Using wvdial

3 GSM..

3.1 GSM data.

3.1.1 Outgoing calls.

3.1.2 Incoming calls.

3.2 Voice calls.

3.3 SMS.

3.3.1 Sending SMS.

3.3.2 Receiving an SMS.

3.3.3 Listing the Messages.

4 GlobeTrotter Configuration and Status..

4.1 SIM control

4.2 Registration.

4.2.1 Listing Available GSM Networks.

4.2.2 Selecting a network.

4.3 Signal Strength.

4.4 Identifying incoming call types.

4.5 Band Selection.

4.6 Product Information.

4.6.1 Product Name.

4.6.2 Manufacturers product Text

4.6.3 Manufacturer Firmware Revision.

4.6.4 Serial number and IMEI


1 Introduction

Note: The information in this Howto is for the original Option GlobeTrotter card.  The bug fix described in 2.1.3.4 is for the GlobeTrotter only.
This card was renamed GlobeTrotter GPRS.

This document is based on my personal experience and describes how to get Option’s GlobeTrotter GPRS/GSM PCMCIA modem (GT for short) working in various operating systems including Linux. If you are attempting this yourself, at the very least this document should provide some pointers and save you time. For background information and official documentation you should of course visit the Option Wireless Technology website: www.option.com.

For clarity all commands typed at a command terminal are indicated like this.

Some_command with parameters

Modem AT commands are indicated like this in text or this:

AT

Much of the AT command information is standard to all GSM and GPRS modems and so may be of general use.

I would like this document to grow based on experience so very much welcome comments and suggestions. I believe the GT and Linux have a long future together.

If you are interested in UMTS (3G) and Linux then checkout my 3G Howto: Vodafone 3G Howto

1.1 Technical Background

I have assumed that you have a SIM from your GSM network operator that has been enabled for GPRS. You will also need to know the APN (access point name) for your particular network. The APN you need is the one your network operator provides for Internet or VPN access and not the one for WAP phones (unless you want to use WAP of course). It is best to use your mobile phone to disable the SIM PIN if it has been enabled.

Once powered up, the GT provides a single standard modem interface and this is the mode of use I describe here. There is another mode called multiplexed but this is proprietary and would require specific device drivers. For basic voice calls and data-connections the multiplexer is not needed.

If you want to use a GPRS modem PC-card under Linux or other operating system I would recommend the GT for a number of reasons:

1. The GT has been designed to interface as a standard modem; this makes it a lot easier to integrate than some other GPRS cards. In general you can use the operating system standard serial/modem drivers with little or no modification.

2. It’s AT command set is standards compliant. This means traditional communication applications can interact with it and it is well documented.

3. It’s known to work well wherever GPRS is found. I’ve used this card in Europe and the USA without problem.

4. The GT can operate in either 5 or 3.3V mode. This means there is a high probability that the card will work whatever the age of the laptop.

1.2 The Versions of GT

There are now two versions of the GloebTrotter hardware. The original GT that inspired this howto and the 2nd generation card.

You can identify which version you have by looking at the serial number. The first generation card has a serial number beginning with WP. The second generation card has a serial number beginning with WK.

There are only two differences between them.

1. WP – You can use any connection speed between the Linux and the GT from 9600 to 115200 bps. WK you must use 115200 bps

2. WK – is easier to setup, it is recognised correctly by most systems the first time you plug it in. The WP version can require extra configuration (the original reason for this HOWTO).

1.3 Related HOWTOs

Vodafone 3G Datacard (UMTS/GPRS/GSM): Vodafone 3G HowTo

Option GlobeTrotter Fusion (WiFi 802.11g, UMTS/GPRS/GSM) Option Fusion HowTo

2 Linux Configuration

2.1.1 PCMCIA

PCMCIA support is provided by the OS or through the third party card services module. In general, kernel versions 2.4.x.x have support built in (if compiled). Some older 2.2.x.x distributions also have PCMCIA support (e.g. Redhat 7.0). Most of the visible work is done by a daemon called cardmgr.

Before you test the GT you should ensure that the PCMCIA interface is actually available to Linux. If you have not used it before then you should refer to your distribution’s documentation. As a quick check you could try searching for the man page entry for cardctl or try the command directly (as root). If it is there, the command

cardctl status

should give you feedback on the PCMCIA sockets fitted to your machine:

testlinux:~ # cardctl status
Socket 0:
no card
Socket 1:
no card
testlinux:~ #

If you are really stuck then good information is found here - http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO.html . You will also find the latest versions of the card services there but check with your Linux provider first as they should have a ready built rpm either on the distribution disk or at an ftp site.

Helpful laptop hints can be found at http://www.linux-laptop.net/ Just like another OS we know, sometimes the problem is just resource allocation and you may have to configure cardmgr to work for your model of laptop.

NOTE: Some versions of SuSE Linux provide a way for switching between kernel PCMCIA support and using an external module. This switch option is found in the Yast2 Sysconfig editor. You would not normally need to do this.

If all now seems okay; at this point you should insert the GT into a socket and see what happens :)

What happens next will depend on your Linux distribution, the version of card services used and the firmware version of the GT. Unfortunately, it is not easy to determine the firmware fitted to the card without interrogating it first – a Catch 22 problem if ever there was one. If you have access to a Windows machine you can use the diagnostic tools provided by Option. Alternatively, read the different scenarios below and see if the results match your situation. If possible try a different PCMCIA card to satisfy yourself that PCMCIA card services are in fact installed correctly.

It is not possible to be exhaustive but here are the few scenarios I have tried:

2.1.2 Installing GT fitted with firmware versions earlier than 3.4.0

These versions of the firmware should cause no problem for standard Linux configurations. If you are having basic problems seeing the card then concentrate on the PCMCIA card services.

2.1.2.1 Redhat 7 8 9, SuSE 8.x,

You normally hear two high pitched beeps. The cardmgr daemon has detected the card insertion event, read the cards CIS to identify it as a modem, bound the serial_cs module to the GT and then the serial_cs module has assigned one serial device to it.

The command dmesg will show something like this near the last line displayed:

ttyS01 at port 0x02f8 (irq = 3) is a 16550A

NOTE: The actual device (ttyS01) will vary dependent on what other hardware has been installed, this is also true for the port and irq values.

Check the contents of the PCMCIA stab file:

testlinux:~ # more /var/lib/pcmcia/stab
Socket 0: Option XXXXXXXXXXXXX
0 serial serial_cs 0 ttyS1 4 65
Socket 1: empty
testlinux:~ #

You should see a modem card reported – the actual name of the card might be different (Option supply customised cards to many customers).

NOTE: The location of the stab file varies between distributions. Refer to the man page of cardmgr if you cannot find it.

You should also find a logical link has been updated. /dev/modem will now be linked to (in this case) /dev/ttyS1

testlinux:~ # ls -l /dev/modem
lrwxrwxrwx 1 root root 10 Nov 13 15:07 /dev/modem -> /dev/ttyS1
testlinux:~ #

If all this checks out then you are ready to use the GT.

2.1.3 Installing GT fitted with firmware versions 3.4.0 or later

2.1.3.1 Redhat 8.0 and 9.0

I have had reports that these distributions correctly identify the card.

2.1.3.2 Redhat 7.0 and SuSE 8.0

You will normally hear one high-pitched beep followed by a low-pitched beep. On the console, output from dmesg or checking the system log file show that cardmgr (card services cs) reports:

Bad Vcc

 

2.1.3.3 SuSE 8.1, 8.2

You may get two high beeps but the card is not configured correctly. If you use dmesg or the command

more /var/lib/pcmcia/stab

You will see that Linux thinks two serial ports have been found on the same card. The /dev/modem logical link will also be updated to point to the “second port”. This is not good; the second port is a ghost. With the GT in the socket, Linux booting will slow down, may hang when it starts X or even cause a blue screen exception!

2.1.3.4 The Solution

Both of the above problems are solved by the following simple solution:

You have to force cardmgr to use a substitute card configuration. The solution I outline here involves substituting the 3.4.0 card information structure (CIS) with one from an earlier firmware. This is easy to do:

1. Download a replacement CIS and store the file in directory /etc/pcmcia/cis

2. Edit /etc/pcmcia/config and add the following text at the bottom of the file:

card "Option Wireless Technology GSM/GPRS GlobeTrotter"
#Use Manufacturing ID to match all GlobeTrotter variants
manfid 0x0013, 0x0000
cis "cis/GLOBETROTTER.dat"
bind "serial_cs"

3. Stop and re-start cardmgr:

killall cardmgr
cardmgr

4. When you insert the GT all should be working.

2.1.4 Alternative solutions

A more challenging J alternative is to upgrade the Kernel or card services, refer to your distribution’s documents on how this should be done.

2.2 Configuring PPPD

Whatever scheme I have used to create a data link I always find that to get PPP working with the GT it is necessary to switch off VJ compression using the novj option. This is not a performance issue since the ppp link only exists between the laptop and the GT.

2.3 Using chat

This command should create a data link on the Vodafone UK GPRS network

pppd call vodafone

if the following two files exist:

###########################################
#Suggested Vodafone PPPD configuration file
#File /etc/ppp/peers/vodafone
###########################################
#Set this to the device allocated to the GlobeTrotter
/dev/modem
#Baudrate
115200
#Idle time for closing connection
idle 7200
#Lock the device for this PPPD process use only
lock
#Use normal handshaking
crtscts
#Assume it is a modem device and force modem control methods
modem
#Any user can start the connection
noauth
#If a default route exists replace it with the ppp link
#You get an error if this command is not supported
#by your version of PPPD
replacedefaultroute
#Make the ppp link the default root
defaultroute
#Username and Password for computer/GlobeTrotter ppp link
#Normally ignored. Change if GSM Operator requires it
user Anyname
password Anypassword
#Change the path to chat if required for your version of Linux
connect "/usr/sbin/chat -V -f /etc/ppp/vodafone-chat"
#Accept IP address provided by network
noipdefault
#Detach PPPD from console used to run the program {optional}
#updetach
#Get DNS addresses from operator
usepeerdns
#Don't use VJ compression for ppp link
novj
###########################################
###########################################

###########################################
# Suggested chat script called by PPPD
# File: /etc/ppp/vodafone-chat
###########################################
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
"" "AT&F"
OK "ATE1"
OK "AT+CGDCONT=1,\042IP\042,\042internet\042"
SAY "Calling Vodafone GPRS\n"
TIMEOUT 60
OK "ATD*99***1#"
CONNECT \c
###########################################
###########################################

Rename these files for you own connection. The APN internet found in the chat script line "AT+CGDCONT=1,\042IP\042,\042internet\042" will of course need changing to your operator’s APN.

To break the connection you can use:

killall pppd

2.4 Using wvdial

These days it is more popular to use wvdial to control ppp

With the two files detailed below, connect to the Vodafone network using the command:

wvdial

To connect to the another APN use the command

wvdial Another

The following files are offered as a solution, again using the Vodafone UK network as an example (change the APNs in /etc/wvdial.conf to match your networks APN).

# File: /etc/ppp/peers/wvdial
# WvDial options
#
plugin passwordfd.so
#
noauth
name wvdial
defaultroute
replacedefaultroute
noipdefault
usepeerdns
novj

#File: /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/modem
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","internet"
Area Code =
Phone = *99***1#
Username = dummy
Password = dummy
Ask Password = 0
Dial Command = ATD
Stupid Mode = 0
Compuserve = 0
Force Address =
Idle Seconds = 3000
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1


[Dialer Another]
Init3 = AT+CGDCONT=1,"IP","AnotherAPN"

To terminate the ppp session you type CTRL-C in the terminal used to start wvdial.

3 GSM

3.1 GSM data

3.1.1 Outgoing calls

A GSM data call is initiated using wvdial or chat as if the GT was a normal landline modem using the telephone number of the remote computer or ISP. The data link created will be at 9.6 or 14.4 kbps (dependent on the network operator) and will either be a transparent or non-transparent connection depending on the setting of the AT+CBST command. Remember that any PPP link created will be between your computer and the remote ISP. (For a GPRS connection the PPP link only exists between the laptop and the card).

3.1.2 Incoming calls

Some people have asked if it is possible to connect to the GT from another modem. This is possible as long as the GT and the network know that it is a data-call being made. You need to request from your operator (SIM provider) an additional telephone number for the SIM that is reserved exclusively for data. When this number is used to call the GT all the correct GSM network settings will be made that set up the data circuits. The GT will then receive the data call notification RING (see Identifying incoming call types). The GT can then answer the call with

ATA

The data connection will be at 9.6 or 14.4 kbs. The speed of the connection will depend on the network operator. It is up to you what happens next, you could for example arrange for PPPD to monitor for incoming calls. Refer to PPPD documentation for details.

NOTE: If you call the GT with a modem using the standard telephone number you will receive the call as expected but the call will be dropped.

3.2 Voice calls

Voice calls are made using ATD; The semi-colon at the end of the number indicates to the GT that a voice call rather than data call is requested. To answer incoming calls use the ATA command. Hang-up the call using ATH.

3.3 SMS

The GT is able to send and receive SMS messages and there are various applications that offer a user interface. I am told that Smsd v1.12.2 works well.

After power up or after entering the PIN, the SIM card requires a short time (15-20 seconds) to initialise the SMS sub-system. More detail on SMS can be found in the supporting AT command documents available at the Option web site.

SMSs are stored on the SIM, Your application will have to manage the limited amount of memory available by ensuring old messages are deleted. If the message store is full you will be unable to send or receive messages. The maximum message-length is 160 characters.

There are two methods of processing SMS, either in text mode or in PDU mode. Text mode is the simplest as messages are written and read from the SIM in plain text. PDU mode encodes the text as a sequence of hexadecimal – this allows messages to contain sequences of characters that may cause problems for processing in text mode.

For a tutorial on PDU mode refer to http://www.dreamfabric.com/sms/

The description below is for text mode messaging but the principle is the same for PDU mode. The description assumes you are using a terminal program such as mgetty.

3.3.1 Sending SMS

Text mode messages uses the 7-bit extended GSM Alphabet.

Use the storage command to select the correct memory area

AT+CPMS=”SM”

Enable text mode

AT+CMGF=1

Start a new message:

AT+CMGS=”phone number of recipient”

 

The GT response is “>”

The plain text message is typed in entered with a terminating CTRL-Z.

If the message is sent without error then after a few seconds you receive:

+CMGS: n

 

where n is the SIM message store number.

3.3.2 Receiving an SMS

For SMS receiving, you normally wait for the unsolicited response

+CMTI: "SM", n

This indicates a new SMS has been placed in the SM storage as message ‘n’.

You can read the message by issuing:

AT+CPMS=”SM”

 

to select the SM storage location and then to read the message:

AT+CMGR=n

Which displays:

+CMGR: "","",,""

can be "REC UNREAD", "REC READ", "STO UNSENT", "STO SENT", where REC means received (= incoming), STO means stored (= outgoing).

On the next line, you will see the text of the message. Since the CMGR command (just like the others ) finishes with “OK", you have to be careful processing a message that has this character sequence in it. This is one of the limitations of the Text Mode.

After getting the SMS, you need to delete it from the SIM in order not to fill the limited storage space. You can delete any message by issuing

AT+CMGD=n

 

where "n" is the store number .

3.3.3 Listing the Messages

Select the correct message store:

AT+CPMS=”SM

List all unread messages:

AT+CMGL="REC UNREAD”

List all unsent messages:

AT+CMGL=" STO UNSENT”

4 GlobeTrotter Configuration and Status

This section describes some of the more useful AT commands that can be sent to the GT. There are many more AT commands available in documents found at the Option website.

4.1 SIM control

The GT requires a SIM to be fitted in order to access a GSM network. Some people use SIMs with PIN code protection. Some operators mandate the use of PIN codes as this is a protection in the event of SIM theft.

Before proceeding; the SIM state should be checked:

AT+CPIN?

+CPIN: READY - this means that no pin is required and you can continue
+CPIN: SIM PIN - this means that a pin number is needed.

If a pin is needed then:

AT+CPIN=”1234”

- replace 1234 with the 4 digit PIN for the SIM.

If a PIN has been defined, the GlobeTrotter will not register until a correct PIN is entered.

Entering an incorrect PIN three times locks the SIM until PUK has been entered.

4.2 Registration

SMS and Data connections are only possible if the GlobeTrotter is registered on a network.

AT+CREG (GSM)
AT+CGREG (GPRS)

Some possible answers:

+CREG: 0,0 - The GT is not registered or scanning for a GSM network
+CREG: 0,1 - The GT has registered on the "HOME" network of the SIM
+CREG: 0,2 - The GT is not registered but is scanning for a GSM network
+CREG: 0,3 - Registration is denied (Manual registration attempt failed)
+CREG: 0,5 - The GT has registered on to another network (it is roaming).

The AT+COPS? command can also be used to return the registration state and operator name or code.

Note: When roaming, the GT it will normally register on the first network it finds matching with the SIM. This does not always mean that GPRS will work! You may have to force the GT on to a particular network. Before travelling to a new country confirm with your SIM provider which networks support GPRS and what (if any) special settings are required.

4.2.1 Listing Available GSM Networks

To list the available networks just type the command

AT+COPS=?

and wait 20-30 seconds. Then you'll get back

+COPS: (,"network's_long_name","network's_short_name","network's_ID")[,...],,(0-n),(0-m)

Network status can be:

0 unknown

1 available

2 current

3 forbidden

Net ID is a worldwide unique ID combining the country code plus the network provider.

The response may contain more than one network record; each record is surrounded by parenthesises.

You cannot issue this query while the card is searching for an available network (CREG: 0,2 is reported in response to AT+CREG).

4.2.2 Selecting a network

The GT will register on the first available network that the SIM allows. This is usually the network of the SIM provider (if you are at home), or a network that has roaming contract with the SIM-supplier network (if you are abroad). If you are roaming and you want to register to a network manually then type:

AT+COPS=1,2,""

1 means "manual registration", 2 means you want to specify the network in

network ID format, finally the ID in quotes.

After several seconds you get

OK or ERROR

Errors can occur because for example you tried to register to a forbidden network. You cannot force registration on to a network that does not have a roaming agreement with the SIM provider. You cannot roam on to another network in your own country since they are the same country code (e.g. you have D1 SIM card in Germany and you want to use D2. Since they are competitors, it won't work).

If manual registration is forced, the GlobeTrotter stays in this mode and will not scan again until

AT+COPS=0

 

is issued.

4.3 Signal Strength

Manual interrogation of the signal strength (rssi) is achieved by the following command:

AT+CSQ

The result code is only valid if the GT is in the registered state.

The results returned are in the format:

+CSQ: X,Y where X is the signal strength and Y indicates quality. In practice, I have found that if the signal strength is below 10 then GPRS connections are unreliable. Values around 15 are good, 25 is excellent.

4.4 Identifying incoming call types

Use the command

AT+CRC=1

This will make the GT replace the unsolicited RING message with +CRING: . Some of possible the types are:

ASYNC [,[,,]] asynchronous transparent
SYNC [,[,,]] synchronous transparent
REL ASYNC [,[,,]] asynchronous non transparent
REL SYNC [,[,,]] synchronous non transparent
FAX [,[,,]] facsimile (TS 62)
VOICE [,[,,]] normal voice (TS 11)

4.5 Band Selection

You will have to make frequency band changes if you operate in and out of the USA. Depending on factory configuration the GT will be supplied to you either set for European (900/1800 MHz) or USA (900/1900 MHz) operation.

To switch bands:

AT_OSBM=

Where = 4 for European (900/1800 MHz) and = 5 USA (900/1900 MHz).

4.6 Product Information

4.6.1 Product Name

ATI

4.6.2 Manufacturers product Text

AT+CGMI

4.6.3 Manufacturer Firmware Revision

AT+GMR

4.6.4 Serial number and IMEI

AT+GSN

END

 

 


PHARscape

News:

Option release Packaged HSO Drivers
Option makes available HSO drivers in DEB and RPM format

Option release HSO version 1.14
Option release HSO version 1.14

Latest Articles:

  • Equipment 2010.08.02
  • Globular Clusters 2010.07.31
  • Galaxies 2010.07.31

Latest Forum Messages:

PHARscape Linux and 3G forum
  • Re: Download link for hsolinkcontrol?
  • Download link for hsolinkcontrol?
  • "hsocremote CONNECT" doesn't work
  • Re: ZeroCD on Fedora 13
  • Re: ZeroCD on Fedora 13

Powered by MODx  Template © 2006 modXhost.com CSS
MySQL: 0.0058 s, 2 request(s), PHP: 0.0853 s, total: 0.0911 s, document retrieved from cache.