sysinfo Module

The sysinfo module offers an API for checking the system information of the mobile device. The following functions are avaliable:

 

battery()

Returns the current battery level ranging from 0 to 7. If using an emulator, value 0 is always returned.

 

- display_twips()

Returns the width and height of the display in twips. (A twip is defined as 1/1440 of an inch, or 1/567 of a centimeter)

 

- display_pixels()

Returns the width and height of the display in pixels.

 

- free_drivespace()

Returns the amount of free space left on the drives in bytes.

 

- imei()

Returns the IMEI code of the device as a Unicode string. If using an emulator, the hardcoded string u'000000000000000' is returned.

 

- max_ramdrive_size()

Returns the maximum size of the RAM drive on the device.

 

- ram total_ram()

Returns the amount of RAM memory on the device.

 

- free_ram free_ram()

Returns the amount of free RAM memory available on the device.

 

- rom total_rom()

Returns the amount of read-only ROM memory on the device.

 

- ring_type() Not supported in 1st Edition!

Returns the current ringing type as a string, which can be one of the following: 'normal', 'ascending', 'ring_once', 'beep', or 'silent'.

 

- os_version()

Returns the operating system version number of the device as integers.

 

- signal()

Returns the current network signal strength ranging from 0 to 7. If using an emulator, value 0 is always returned.

 

- sw_version()

Returns the software version as a Unicode string. If using an emulator, the hardcoded string u'emulator' is returned.

Department of Electronic Systems | Aalborg University | Niels Jernes Vej 12 | DK-9220 Aalborg | Denmark
Phone: (+45) 9635 8695 | Fax (+45) 9815 1583 | E-mail ies(at)ies.aau.dk
Copyright © 2006 Department of Electronic Systems

Last update:02-10-2006