($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: "G. Weinholt" <g@weinholt.net>, ofono@lists.linux.dev
Subject: Re: SIM7600G-H: cid 1 activated before atom registered
Date: Sun, 12 Nov 2023 12:31:28 -0600	[thread overview]
Message-ID: <4cd8c507-0685-449a-9a8a-9cb36512f5d7@gmail.com> (raw)
In-Reply-To: <ZU354V7zyCseX1r2@castle.weinholt.se>

Hi,

On 11/10/23 03:37, G. Weinholt wrote:
> Hello,
> 
> I have been troubleshooting a problem with a SIM7600G-H modem where the
> LTE network does not come up after reboot. It can be worked around by
> restarting ofono or connman.

After reboot of what exactly?
vi
> 
> A symptom of the problem is that the context can't be activated manually
> because GPRS is marked as not attached. I've verified with both the modem
> and Onomondo's signaling logs that GPRS is attached and oFono is wrong.

So how does restarting oFono help?

> 
> # dbus-send --print-reply --system --dest=org.ofono  \
>   /sim7x00_0/context1 org.ofono.ConnectionContext.SetProperty  \
>   string:"Active" variant:boolean:"true"
> Error org.ofono.Error.NotAttached: GPRS is not attached
> # mdmcmd /dev/serial/by-id/usb-SimTech_*-if02-port0 uart 'AT+CGATT?'
> Starting with device
> +/dev/serial/by-id/usb-SimTech__Incorporated_SimTech__Incorporated_0123456789ABCDEF-if02-port0, command
> +AT+CGATT?
> Received buffer: AT+CGATT?
> +CGATT: 1
> 
> OK

What do AT commands have to do with qmimodem?

> 
> There is an interesting log message: "cid 1 activated before atom
> registered". This message was added in the commit "gprs: Ignore activated
> contexts during init, list them later". That commit was followed by
> another commit: "atmodem: Implement the list_activated_contexts callback".

I'd have to see the log to say what exactly is happening, but...

gobi plugin sets up gprs in post_sim.  If your contexts are not being 
provisioned, then ofono_gprs_register() should be called prior to the modem 
going Online and prior to drivers/qmimodem/gprs.c ever issuing 
QMI_WDS_GET_LTE_ATTACH_PARAMETERS, which in turn generates the 
ofono_gprs_cid_activated() call in question.


Regards,
-Denis

      reply	other threads:[~2023-11-12 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-10  9:37 SIM7600G-H: cid 1 activated before atom registered G. Weinholt
2023-11-12 18:31 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4cd8c507-0685-449a-9a8a-9cb36512f5d7@gmail.com \
    --to=denkenz@gmail.com \
    --cc=g@weinholt.net \
    --cc=ofono@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).