spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
HowTo
ComGT Utility
GlobeTrotter HowTo
Vodafone 3G HowTo
Fusion HowTo
HSOconnect and Ubuntu 8.04
Links
APNs etc
Syndicate
phpBB Login
Username

Password

Remember me
Forgotten your password??
No account yet? Create one
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G arrow COMGT - GlobeTrotter Command Line Tool

COMGT - GlobeTrotter Command Line Tool Print E-mail
Monday, 25 October 2004

[COMGT is the new name for GCOM] 

Controlling Option datacards with the command line tool comgt. Presented here is a utility to enter the PIN and other useful things that are necessary before starting a PPP connection.

But first, credit where credit is due: A couple of years ago I found a program called dcon 0.97 (written in 1996). The purpose of this program was to run scripts that would control Linux serial ports. The implementation was very similar to something I had written for Windows. Anyway, rather than reinvent I contacted the author Daniel Chouinard and asked his permission to reuse the code.

Happily he gave me that permission and a basic but useful utility called comgt was created.

comgt has a number of "standard" scripts built in. The standard scripts are generic enough that they work for all the Option datacards and the Vodafone 3G card too.

Building comgt

The  source for comgt is found here: COMGT Files

Download the file and unzip it in a temporary location them run make to build the program and make install to install the program and help files.

Using comgt

The following is only a sample of what comgt can do. Please look in the forum  for more details. The man page and built-in help also have comprhensive information.

Default script

If you run comgt -d /dev/ttyS1 on its own it will check for a PIN and prompt you if it is required. The next thing it does is wait for the device to register, it then reports the signal strength.

If you don't specify a port with the -d option then /dev/modem is assumed.

comgt sig Prints the signal strength
comgt info Lists the datacard configuration
comgt help Lists these and the other options available


Custom Scripts

As well as built in scripts you can make your own. The following script sets a Vodafone 3G datacard or Option Fusion card's UMTS mode to GPRS:

#Set GPRS only mode
set com 115200n81
set senddelay 0.05
waitquiet 1 0.2
send "AT_OPSYS=0^m"
print "Setting GPRS only moden"


If you saved the above script as GPRS you would call it like this:
comgt GPRS
If you needed to specify the port as well then do this:
comgt -d /dev/ttyS1 GPRS
To write you own custom scripts is very easy, here is the original documentation for dcon: DCON documentation (now integrated in comgt  man page documentation)

 

Last Updated ( Wednesday, 05 July 2006 )
< Prev
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer