Overview
Gammu SMS Daemon is a program that periodically scans GSM modem for received messages, stores them in defined storage and also sends messages enqueued in this storage.
Overall schema
The interactions of SMS Daemon and related components can be seen on following picture.
SMSD operation
The SMSD operation consist of several steps.
Process command line options.
Configure backend service.
- Main loop is executed until it is signalled to be terminated.
Try to connect to phone if not connected.
Check for security code if configured (configured by
CheckSecurity
).Check for received messages (frequency configured by
ReceiveFrequency
).Check for reset of the phone if configured (frequency configured by
ResetFrequency
).Check for messages to send (frequency configured by
CommTimeout
).Check phone status (frequency configured by
StatusFrequency
).Sleep for defined time (
LoopSleep
).
Backend service is freed.