All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: AT channel problem
Date: Thu, 05 May 2016 09:04:54 -0500	[thread overview]
Message-ID: <572B5306.2000004@gmail.com> (raw)
In-Reply-To: <CAH4ZQwurmsdm9_Tw-hGz8zY=im62R=zu7da-0DUZ3dkQbY2_4Q@mail.gmail.com>

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

Hi Enrico,

On 05/05/2016 03:42 AM, Enrico Sau wrote:
> Hi all,
>
> I'm running into a problem with AT command read process and I need some
> help because I don't fully understand the code in this case.
>
> Ofono freezes in one particular systematic case when I receive
> "\r\nOK\r\n" from the modem port (without quotes).
>
> As I understood the method gatchat/gatchat.c::new_bytes() is called when
> something was read from gatchat/gatio.c::received_data(), and the
> function p->syntax->feed returns a result based on the syntax structure.
>
> I made some debug and I found out that, in the failing case,
> syntax->state is 2, it means that it is trying to read a line, but the
> process fails because it doesn't find the ' " ' character.
>

What syntax is being used?

> I don't understand where the variable sysntax->state was set to 2. It
> doesn't make sense to me.
> I tried to search the code for all possible points where the variable is
> set but I couldn't find the correct one.
>

How does the rest of the log look like?

> Does anyone have a suggestion about where should I look?
>
> Thank you all.
>
> Enrico

Regards,
-Denis


  reply	other threads:[~2016-05-05 14:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05  8:42 AT channel problem Enrico Sau
2016-05-05 14:04 ` Denis Kenzior [this message]
2016-05-05 14:51   ` Enrico Sau
2016-05-05 15:10     ` Denis Kenzior
2016-05-05 15:52       ` Enrico Sau
2016-05-06 10:06         ` Enrico Sau
2016-05-06 15:48           ` Denis Kenzior
2016-05-09  7:43             ` Enrico Sau
2016-05-09  8:22               ` Enrico Sau
2016-05-09 14:19               ` Denis Kenzior

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=572B5306.2000004@gmail.com \
    --to=denkenz@gmail.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.