
This is currently not working completely ok because python doesn't know how to free the GList of MMModem3gppNetwork elements. /org/freedesktop/ModemManager1/Modem/1: starting network scan... 21403: Orange - Orange (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21403: Orange - Orange (unknown, forbidden) 21403: Orange - Orange (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21404: Yoigo - Yoigo (unknown, forbidden) 21401: vodafone ES - vodafone ES (unknown, forbidden) 21404: Yoigo - Yoigo (unknown, forbidden) 21407: Movistar - Movistar (unknown, available) 21407: Movistar - Movistar (unknown, available) 21407: Movistar - Movistar (unknown, current) free(): invalid pointer Aborted
17 lines
499 B
Plaintext
17 lines
499 B
Plaintext
|
|
The network-scan-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
|
|
* Loop through each modem found in the system, running a network scan for each
|
|
|
|
The output will look like this:
|
|
|
|
$ ./network-scan-python
|
|
|
|
|
|
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! |