Toggling +CFUN=0/1 upon receiving an unsolicited message

Ben Chan benchan at chromium.org
Mon Sep 16 23:26:53 PDT 2013


Hi Aleksander and Dan,

We're looking into a way to toggle the CFUN state (from 1 to 0, and then
back to 1) upon receiving an unsolicited message after the modem is
enabled. An example use case would be SIM OTA.

Do you see any potential issue with the following implementation in a modem
plugin:

- When the modem is being enabled, set up an unsolicited message handler.
- When the unsolicited message handler is called after the modem is
enabled, perform the following:

    mm_base_modem_disable ()
    mm_base_base_modem_at_sequence ( [ "+CFUN=0", "+CFUN=1" ] )
    mm_base_modem_enable ()

Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20130916/e8e677c6/attachment.html>


More information about the ModemManager-devel mailing list