The Device interface is used to give information about the GSM device and its capabilities. Use it also to enable or disable the RF subsystem (which is mandatory for implementing a flight mode).
org.freesmartphone.GSM.Device
Description: Get information about the GSM device.
This can map to the following GSM 07.07 commands:
Information about this GSM device. Mandatory tuples are:
Description: Retrieve antenna power status from the device.
This maps to the GSM 07.07 command +CFUN=?, see 3GPP TS 07.07 Chapter 8.2.
True, when the antenna is powered on. False, otherwise.
Description: Set antenna power status for this device. Will raise AuthFailed if the SIM is protected with an authentication code.
This maps to the GSM 07.07 command +CFUN=(antenna_power), see 3GPP TS 07.07 Chapter 8.2.
True, for powering on the antenna. False, otherwise.
Description: Get information about the telephony features supported by this device.
This maps to the GSM 07.07 command +GCAP, see 3GPP TS 07.07 Chapter 5.8.
The telephony features supported by this device. Expected tuples are:
Description: Retrieve the current loudspeaker volume.
This maps to the GSM 07.07 command +CLVL?, see 3GPP TS 07.07 Chapter 8.2.3.
The volume in percent (0-100).
Description: Set the current loudspeaker volume.
This maps to the GSM 07.07 command +CLVL=... see 3GPP TS 07.07 Chapter 8.2.3.
The volume in percent (0-100).
Description: Retrieve whether the microphone is currently muted.
This maps to the GSM 07.07 command +CMUT?, see 3GPP TS 07.07 Chapter 8.2.4.
True, if the microphone is muted. False, otherwise.
Description: Mute or unmute the microphone.
This maps to the GSM 07.07 command +CMUT=... see 3GPP TS 07.07 Chapter 8.2.4.
True, to mute the microphone. False, otherwise.
Description: Retrieve the power status. This call is not implemented on most smartphones, since the battery is monitored by the application processor (as opposed to the baseband processor) there.
This maps to the GSM 07.07 command +CBC, see 3GPP TS 07.07 Chapter 8.4.
The power status. Valid values are:
The charging level in percent (0-100), if a battery is built in. -1, otherwise.
Description: Retrieve whether incoming SMS are buffered on the SIM (in which case IncomingStoredMessage is sent) or sent directly via the IncomingMessage signal).
This maps to the GSM 07.07 command +CNMI?, see 3GPP TS 07.05 Chapter 3.4.1.
True, if incoming SMS are buffered on the SIM. False, otherwise.
Description: Set whether incoming SMS should be buffered on the SIM (in which case IncomingStoredMessage is sent) or sent directly via the IncomingMessage signal).
This maps to the GSM 07.07 command +CNMI=..., see 3GPP TS 07.05 Chapter 3.4.1.
True, if incoming SMS should be buffered on the SIM. False, otherwise.
Description: Raised, when the device is not present.
Description: Raised, when the device does not answer within the specified time for this operation.
Description: Raised, when the device reported an unrecoverable error.