[PATCH 2/4 v2] broadband-modem: query +CMER format before enabling/disabling
Colin Helliwell
colin.helliwell at ln-systems.com
Mon May 22 12:20:10 UTC 2017
> On 22 May 2017 at 12:47 Aleksander Morgado <aleksander at aleksander.es> wrote:
>
> Don't blindly try '+CMER=3,0,0,1' to enable and '+CMER=0' to disable
> Mobile Equipment Event Reporting. We now query the device for the
>
> supported formats and use that info to build commands that will work.
>
> ---
>
> Hey Colin,
>
> This patch fixes a check for +CMER mode 1, and includes additional logging to print the list of supported modes and ind values once received from the parser (it also requires v2 of patch 1/4, which I also sent to the list).
>
> Could you please retry and see if it fixes the setting on the EHS5?
>
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.274889] [src/mm-port-serial-at.c:462] debug_log(): (ttyMux1): --> 'AT+CMER=?<CR>'
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.286404] [src/mm-port-serial-at.c:462] debug_log(): (ttyMux1): <-- 'AT+'
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.289111] [src/mm-port-serial-at.c:462] debug_log(): (ttyMux1): <-- 'CMER=?<CR>'
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.306877] [src/mm-port-serial-at.c:462] debug_log(): (ttyMux1): <-- '<CR><LF>+CMER: (1,2),0,0,(0-1),0<CR><LF>'
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.308933] [src/mm-port-serial-at.c:462] debug_log(): (ttyMux1): <-- '<CR><LF>OK<CR><LF>'
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.309689] [src/mm-broadband-modem.c:2644] cmer_format_check_ready(): Supported +CMER modes: discard-urcs-if-link-reserved
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.309937] [src/mm-broadband-modem.c:2648] cmer_format_check_ready(): Supported +CMER indication settings: disable
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.310222] [src/mm-broadband-modem.c:2610] set_unsolicited_events_handlers(): (ttyMux1) Setting 3GPP unsolicited events handlers
May 22 13:08:44 wg daemon.info ModemManager[833]: <debug> [1495454924.310588] [src/mm-broadband-modem.c:2920] modem_3gpp_enable_unsolicited_events(): Skipping +CMER enable command: not supported
More information about the ModemManager-devel
mailing list