File: README

package info (click to toggle)
modemmanager 1.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,480 kB
  • sloc: ansic: 237,886; xml: 2,433; python: 1,211; sh: 349; javascript: 60; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

The sms-watch-python program makes use of the 'libmm-glib' library through
GObject Introspection to talk to ModemManager.

The program will:
 * Detect whether ModemManager is found in the bus
 * List all existing SMS messages stored in the modem
 * Print details of all new SMS messages (either from the network or the host)

The output will look like this:

$ ./sms-watch-python
[ModemWatcher] /org/freedesktop/ModemManager1/Modem/21: modem managed by ModemManager [862342010150533]: QUALCOMM INCORPORATED (0)
[ModemWatcher] /org/freedesktop/ModemManager1/Modem/22: modem state updated: disabled -> enabling (user-requested)
[SmsWatcher] PATH:                /org/freedesktop/ModemManager1/SMS/57
[SmsWatcher] NUMBER:              78273
[SmsWatcher] TEXT:                'Lieber Tchibo mobil Kunde, herzlich Willkommen in den USA. Sie k nnen hier wie gewohnt Ihre Mailbox einfach und bequem unter 333 erreichen.'
[SmsWatcher] PDU-TYPE:            deliver
[SmsWatcher] STATE:               received
[SmsWatcher] STORAGE:             me
[SmsWatcher] SMSC:                +491760000443
[SmsWatcher] TIMESTAMP:           2014-05-07T04:35:19+02

Note that the program requires ModemManager and libmm-glib to be installed in
the system and the introspection typelibs available in the standard paths.

Have fun!