Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Retrieving system information with the m language

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

M on Symbian is not maintained and may not run on current Symbian versions. All M articles have been archived.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
Platform(s): S60 2nd Edition, S60 3rd Edition, S60 5th Edition
Platform Security
Capabilities: )
Created: bogdan.galiceanu (02 May 2009)
Last edited: hamishwillee (09 May 2013)



This article shows how to retrieve system information in m.


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): " +
print "Signal strength: " + gsm.signal() //Value between 0 and 100
print "Cell ID: " + gsm.cid()
print "MCC: " +["mcc"]
print "MNC: " +["mnc"]
print "Short network name: " +["short"]
print "Long network name: " +["long"]
print "LAC: " +["lac"]
print "IMEI: " + gsm.imei
print "IMSI: " + gsm.imsi


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.

This page was last modified on 9 May 2013, at 02:49.
21 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.