-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modemmanager: Allow to add cell broadcast messages
Doing userspace development for cell broadcast messages can be tricky as they're very rare in the wild. If one doesn't mock ModemManager one needs to have a small GSM cell for testing. Hence add a AddCbm() message to add cell broadcast messages to the MM mock. ``` mm_server.obj.AddCbm(2, 4383, f"This is a test) ``` Messages can be deleted via ``` busctl call --system org.freedesktop.ModemManager1 /org/freedesktop/ModemManager1/Modems/8 org.freedesktop.ModemManager1.Modem.CellBroadcast Delete o /org/freedesktop/ModemManager1/Cbm/5 ``` and listed via ``` busctl call --system org.freedesktop.ModemManager1 /org/freedesktop/ModemManager1/Modems/8 org.freedesktop.ModemManager1.Modem.CellBroadcast List ``` The implemented API is sufficient to allow MMs `mmcbmmonitor` to detect and display CBMs and also allows to test Phosh. Signed-off-by: Guido Günther <[email protected]>
- Loading branch information
1 parent
a2a4f64
commit 11e97db
Showing
2 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters