All of lore.kernel.org
 help / color / mirror / Atom feed
* AT channel problem
@ 2016-05-05  8:42 Enrico Sau
  2016-05-05 14:04 ` Denis Kenzior
  0 siblings, 1 reply; 10+ messages in thread
From: Enrico Sau @ 2016-05-05  8:42 UTC (permalink / raw)
  To: ofono

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

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.

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.

Does anyone have a suggestion about where should I look?

Thank you all.

Enrico

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2414 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-05-09 14:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05  8:42 AT channel problem Enrico Sau
2016-05-05 14:04 ` Denis Kenzior
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

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.