mmcli -m 0 -e command fails

Dan Williams dcbw at redhat.com
Thu Mar 23 02:02:46 UTC 2017


On Thu, 2017-03-23 at 00:28 +0000, Jan Graczyk wrote:
> Hello Aleksander,
> 
> I have attached a file with the logs from ModemManager --debug
> command.

The modem doesn't reply to any of the Capabilities requests commands
and thus MM can't figure out what to do with the modem.

mm_port_serial_close(): (ttymxc2) device open count is 2 (close)
debug_l
og(): (ttymxc2): --> 'AT+GCAP<CR>'
debug_log(): (ttymxc2): <--
'<CR><LF>ERROR<CR><LF>'
mm_serial_parser_v1_parse(): Got failure code
100: Unknown error
debug_log(): (ttymxc2): --> 'ATI<CR>'
debug_log():
(ttymxc2): <-- '<CR><LF>Quectel<CR><LF>UC20<CR><LF>Revision:
UC20GQBR03A14E1G<CR><LF><CR><LF>OK<CR><LF>'
debug_log(): (ttymxc2): -->
'AT+CPIN?<CR>'
debug_log(): (ttymxc2): <-- '<CR><LF>+CME ERROR:
10<CR><LF>'
mm_serial_parser_v1_parse(): Got failure code 10: SIM not
inserted
debug_log(): (ttymxc2): --> 'AT+CGMM<CR>'
debug_log():
(ttymxc2): <-- '<CR><LF>UC20<CR><LF><CR><LF>OK<CR><LF>'

This could be due to the SIM failure.  But you could you run minicom or
something and manually run "AT+GCAP" and "AT+GCAP?" for us?

Dan

> Best Regards,
> Jan Graczyk
> 
> -----Original Message-----
> From: ModemManager-devel [mailto:modemmanager-devel-bounces at lists.fre
> edesktop.org] On Behalf Of Aleksander Morgado
> Sent: Wednesday, March 22, 2017 4:55 PM
> To: Jan Graczyk <JanG at nytec.com>
> Cc: modemmanager-devel at lists.freedesktop.org
> Subject: Re: mmcli -m 0 -e command fails
> 
> Hey Jan,
> 
> On Thu, Mar 23, 2017 at 12:46 AM, Jan Graczyk <JanG at nytec.com> wrote:
> > But there I another problem with mmcli ‘enable’ command. Here is
> > the output:
> > 
> > 
> > 
> > root at linaro-alip:~# mmcli -m 0
> > 
> > 
> > 
> > /org/freedesktop/ModemManager1/Modem/0 (device id 'unknown')
> > 
> >   -------------------------
> > 
> >   Hardware |   manufacturer: 'unknown'
> > 
> >            |          model: 'unknown'
> > 
> >            |       revision: 'unknown'
> > 
> >            |      supported: 'none'
> > 
> >            |        current: 'none'
> > 
> >            |   equipment id: 'unknown'
> > 
> 
> This is bad, it couldn't load any of the HW information.
> 
> >   -------------------------
> > 
> >   System   |         device:
> > '/sys/devices/soc0/soc/2100000.aips-bus/21ec000.serial'
> > 
> >            |        drivers: 'imx-uart'
> > 
> >            |         plugin: 'Generic'
> > 
> >            |   primary port: 'ttymxc2'
> > 
> >            |          ports: 'ttymxc2 (at)'
> > 
> >   -------------------------
> > 
> >   Numbers  |           own : 'unknown'
> > 
> >   -------------------------
> > 
> >   Status   |           lock: 'unknown'
> > 
> >            | unlock retries: 'unknown'
> > 
> >            |          state: 'unknown'
> > 
> >            |    power state: 'unknown'
> > 
> >            |    access tech: 'unknown'
> > 
> >            | signal quality: '0' (cached)
> > 
> 
> Bad bad, there really wasn't anything loaded at all...
> 
> >   -------------------------
> > 
> >   Modes    |      supported: 'allowed: any; preferred: none'
> > 
> >            |        current: 'allowed: any; preferred: none'
> > 
> >   -------------------------
> > 
> >   Bands    |      supported: 'unknown'
> > 
> >            |        current: 'unknown'
> > 
> >   -------------------------
> > 
> >   IP       |      supported: 'none'
> > 
> >   -------------------------
> > 
> >   SIM      |           path: 'none'
> > 
> > 
> > 
> >   -------------------------
> > 
> >   Bearers  |          paths: 'none'
> > 
> > 
> > 
> > root at linaro-alip:~#
> > 
> > root at linaro-alip:~#
> > 
> > root at linaro-alip:~# mmcli -m 0 -e
> > 
> > error: couldn't enable the modem:
> > 'GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method
> > Enable 
> > is not implemented on interface
> > org.freedesktop.ModemManager1.Modem'
> > 
> > root at linaro-alip:~#
> > 
> > 
> > 
> > Is that there is a problem with SIM card?
> 
> Not with the SIM card; not yet. Looks like the TTY replied only to AT
> probing and failed to reply to the remaining commands we sent to e.g.
> query manufacturer or model; all that is before the SIM card can be
> used.
> 
> You'll need to run ModemManager daemon manually with --debug and grab
> all the debug logs while you reproduce the issue, see:
> https://www.freedesktop.org/wiki/Software/ModemManager/Debugging/
> 
> --
> Aleksander
> https://aleksander.es
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


More information about the ModemManager-devel mailing list