All of lore.kernel.org
 help / color / mirror / Atom feed
From: Viallard Anthony <viallard@syscom-instruments.com>
To: ofono@ofono.org
Subject: Why doesn't ofono match all +CGEV notification ? How can I implement a GPRS watchdog ?
Date: Tue, 24 Feb 2015 15:26:56 +0100	[thread overview]
Message-ID: <54EC8A30.4070207@syscom-instruments.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2292 bytes --]

Hello,

I'm looking for an issue with GPRS. I have the SIMCOM5216E module with 
ofono 1.12. The problem was see in France with SFR provider. I didn't 
reproduce this with another provider and in another country... But maybe 
it's a question of uptime...

During a good period of time, my device is well connected through the 
GPRS connection. All work perfectly. In recent log, I can see the GPRS 
is reactivated several time along the weeks but the PPP is back online 
soon after.

But, few days ago, I saw the GPRS connection was unusable for 10 days. I 
saw the problem began the 12th February. According to different logs, 
the network connectivity have began to fail since the 2th February. 
Unfortunately, I couldn't get logs from ofono during the period of time 
(it's an embedded device, so the size of the log file is only 64k bytes. 
But it will be a good idea for the future to increment it ...). However, 
the device had others logs. I could see the log from our program that 
deals with ofono (it sends dbus commands and listen for dbus signals) 
and I saw there is a blank period from the 2th to the 12th. It's like 
ofono or the module was dead.

So, I begin to read the code, especially the simcom driver, to see if I 
miss something. And I see something weird.

According to the SIMCOM AT document, the +CGEV notification can be send 
with this list of event:

  REJECT
  NW REACT
  NW DEACT
  ME DEACT
  NW DETACH
  ME DETACH
  NW CLASS
  ME CLASS

But in gprs-context.c, I see we deal only with the "NW DETACH" event. 
Maybe It's the point. Maybe the modem send to ofono an another event and 
therefore ofono begins to be in incorrect state about the GPRS 
connection... Is it possible ?

Otherwise, I'm thinking about implement a GPRS watchdog. Does it exist 
an AT command which could do that ? My idea is to send an AT command 
each XX period of time and check the GPRS connection is really here.

Regards,
Anthony Viallard.

-- 
-----------------------------------------
Viallard Anthony    (+41 024 455 24 82)
[ Embedded System | Software Designer ]
-----------------------------------------
   Syscom Instruments SA
   Rue de l'industrie 21
   1450     Sainte-Croix
-----------------------------------------

                 reply	other threads:[~2015-02-24 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=54EC8A30.4070207@syscom-instruments.com \
    --to=viallard@syscom-instruments.com \
    --cc=ofono@ofono.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.