All of lore.kernel.org
 help / color / mirror / Atom feed
* Dealing with modem hangs
@ 2014-03-24 20:45 Yevhen Kyriukha
  2014-03-24 21:04 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Yevhen Kyriukha @ 2014-03-24 20:45 UTC (permalink / raw)
  To: ofono

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

I use 3G modems connected to unattended terminals for a long time.
I use ofono for managing 2G connections.

All this time I'm suffering from modem hangs: during establishing 2G
connection modem may hang, i.e. it stops reacting on AT commands to
specific port.
I'd tested a lot of modems of different brands before selecting one.
And I have to say that *every* model has such issue.

So I created a workaround for this (patched ofono):
When I send AT command I start a timer that fires when no response is
received during some timeout. So if timeout is reached I send
AT+CFUN=1,1
command that makes modem reset.
After that modem can be usable again.

I was surprised that ofono doesn't have such functionality.

So I think ofono should have some sort of mechanism to reset the modem
if it stops responding.
What do you think?

-- 
Best regards,
Yevhen

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

* Re: Dealing with modem hangs
  2014-03-24 20:45 Dealing with modem hangs Yevhen Kyriukha
@ 2014-03-24 21:04 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2014-03-24 21:04 UTC (permalink / raw)
  To: ofono

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

Hi Yevhen,

On 03/24/2014 03:45 PM, Yevhen Kyriukha wrote:
> I use 3G modems connected to unattended terminals for a long time.
> I use ofono for managing 2G connections.
>
> All this time I'm suffering from modem hangs: during establishing 2G
> connection modem may hang, i.e. it stops reacting on AT commands to
> specific port.
> I'd tested a lot of modems of different brands before selecting one.
> And I have to say that *every* model has such issue.
>

Most commonly this is a sign that the AT command responses are not 
formatted properly.  Are you running the v250 parser by any chance?  The 
permissive parser is more forgiving.

> So I created a workaround for this (patched ofono):
> When I send AT command I start a timer that fires when no response is
> received during some timeout. So if timeout is reached I send
> AT+CFUN=1,1
> command that makes modem reset.
> After that modem can be usable again.

If the modem responds to AT commands, then the likely cause is something 
else.  Most 'real' hardware deals with true modem firmware crashes 
differently.

>
> I was surprised that ofono doesn't have such functionality.
>
> So I think ofono should have some sort of mechanism to reset the modem
> if it stops responding.
> What do you think?
>

Share the AT command logs of when this happens, maybe there is a simpler 
fix.

Regards,
-Denis

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

end of thread, other threads:[~2014-03-24 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 20:45 Dealing with modem hangs Yevhen Kyriukha
2014-03-24 21:04 ` 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.