You Are Here:

Community: Wiki

This page was last modified on 3 May 2009, at 19:31.

Retrieving system information with the m language

From Forum Nokia Wiki


ID Creation date May 2, 2009
Platform S60 2nd Edition, S60 3rd Edition, S60 5th Edition Tested on devices Nokia N95, Nokia E90
Category M Subcategory Base/System


Keywords (APIs, classes, methods, functions): system

Overview

This article shows how to retrieve system information in m.

Preconditions

Retrieving IMSI on Nokia 6600 does not work. The returned value is 000000000000000.

Source code

use system, gsm
 
 
print "Machine UID: " + system.hal(5)
print "CPU frequency in kHz: " + system.hal(11)
print "Display width in pixels: " + system.hal(31)
print "Display height in pixels: " + system.hal(32)
print "Display width in twips: " + system.hal(33)
print "Display height in twips: " + system.hal(34)
print "Display colors: " + system.hal(35)
print "System langauge: " + system.hal(68) //Returns 1 for English, 2 for French, 3 for German etc.
print "System drive: " + system.hal(72) //Returns 1 for A:, 2 for B:, 3 for C: etc.
print "Total RAM: " + system.hal(15)
print "Free RAM: " + system.hal(16)
print "Manufacturer and model (firmware): " + system.dev
print "Signal strength: " + gsm.signal() //Value between 0 and 100
print "Cell ID: " + gsm.cid()
print "MCC: " + gsm.net()["mcc"]
print "MNC: " + gsm.net()["mnc"]
print "Short network name: " + gsm.net()["short"]
print "Long network name: " + gsm.net()["long"]
print "LAC: " + gsm.net()["lac"]
print "IMEI: " + gsm.imei
print "IMSI: " + gsm.imsi

Postconditions

The information is displayed.

Additional information

The hal function's argument is an index corresponding to an attribute. See the Symbian OS documentation for a complete list of indexes and attributes.

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fE25E459E259CE2587E25E455E258AE25A8E25E456E258E45E25A7E25E455E2588E25B6APIX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZhardwareQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxhardwareX qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ