freesmartphone.org GSM Debug Interface
Description
The Debug interface is used to debug (sic!). You can ping the device, execute test commands, inject unsolicited responses, or be updated about the detailed modem status.
Namespace
org.freesmartphone.GSM.Debug
Methods
Signals
Properties
None
Errors
None
Methods
DebugCommand ( ss ) → s
Description: Sends a debug command.
Implementation Note
WARNING: Only use this, if you know what you are doing. You may crash the device or the service, if you send bogus commands.
Parameters:*
s: command The command to send. Note that the validity of commands depends on the actual modem channel. Not all modem channels are AT channels! It is recommended to implement a ‘help’ command that returns a list of valid commands.
s: channel The channel to send this command on. Set to “” to use the default one.
Returns:
s: result The result of the command
DebugInjectResponse ( ss )
Description: Injects an unsolicited response into the command queue.
Implementation Note
WARNING: Only use this, if you know what you are doing. You may crash the device or the service, if you inject bogus responses.
Parameters:*
s: response The response to inject.
s: channel The channel to inject this command on. Set to “” to use the default one.
DebugPing ( )
Description: Ping the device.
Signals
DebugStatus ( a{ss} )
Description: Sent, when the modem status changes.
Parameters:
a{ss}: channels