Edit 2007/07/07: next version of gnocky will be available from http://www.gnokii.org/
The following patches written by Daniele Forsi allow to:
To compile the CVS version of gnocky you need to create an empty NEWS file in the top directory and fix the Makefile in the po directory (which is not including Makevars and so top_builddir is empty instead of ..).
Home page for gnokii: http://www.gnokii.org/
Home page for gnocky: http://sourceforge.net/projects/gnocky/
Easy program to print signal strength (RF level) returned by phone. It prints a number that you can assign to a variable o check in a conditional, e.g.:
[ $(rf_level) -lt 1 ] && echo "no signal"
Some phones have a range of -1..4 (with -1 meaning "no signal"), others have a range of 0..100 (with 0 meaning "no signal")
If you can send AT commands to your phone you can get this value using AT+CSQ but not all phones support this command and some take so long to answer to this command that communication times out if used with gnokii (LG U8120 is one that times out, you might succed if you first send this command using minicom).
This is the same value reported by gnokii --monitor while xgnokii translates this value graphically showing 0 to 4 segments.
C source code:
Just like almost every ./configure script out there, when configuring gnokii before compiling you can let the script automatically figure out what libraries you have got or you can explicitly enable or disable some features.
The features that will be available when version 0.6.15 is out are:
Given a network name and a country name, this prints the corresponding MCC and MNC or "undefined" if the name is not found.
Both network (operator) and country name are case insensitive, but you need to type them exactly as you find them in libgnokii (use gnokii --listnetworks to see all network names known by libgnokii and please report to the gnokii mailing list if you find errors or omissions).
Examples:
$ network_code vodafone italy 222 10 $ network_code vodafone germany 262 02
Source code:
Note: an updated list is available here.
This is the list of GSM networks known by gnokii and libgnokii version 0.6.14 shown using Drupal collapsible class.