All of lore.kernel.org
 help / color / mirror / Atom feed
* [help] automatic data reconnection in case of signal loss
@ 2014-12-24 14:39 Mylene JOSSERAND
  2014-12-24 18:38 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Mylene JOSSERAND @ 2014-12-24 14:39 UTC (permalink / raw)
  To: ofono

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

Hi everyone,


I am doing some tests with Ofono.
Currently, I am trying to see if Ofono can handle an automatic data 
reconnection in case of signal loss.

I am doing the following test :
- Connect the modem to data connection via atmodem driver (so PPP link)
- Disconnect the antenna to lose signal
- Reconnect the antenna to get signal back
- Try to get data connection back

The atmodem driver is notified that the signal is lost so it disconnects 
ppp with "gprs-context.c:ppp_disconnect() Reason: 6".
After re-connecting the antenna and that the network is back, in the 
Ofono interfaces, it did not changed, I always have the 
ConnectionManager interface. The difference is that the context is not 
activated. So, I try to re-activate it but it failed with error :

gprs.c:pri_activate_callback() Activating context failed with error: 
Unknown error type

I guess that someone should have test it before me. If it is the case, 
is there something I am doing wrong ? I do not know how Ofono should 
react in this case. Maybe it should remove some interfaces ? Go in 
"offline" mode ?
If nobody tested it before, what should I look for ?


Thank you in advance for any help and Merry Christmas :)


Mylène

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

* Re: [help] automatic data reconnection in case of signal loss
  2014-12-24 14:39 [help] automatic data reconnection in case of signal loss Mylene JOSSERAND
@ 2014-12-24 18:38 ` Denis Kenzior
  2015-01-06 11:50   ` Mylene JOSSERAND
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2014-12-24 18:38 UTC (permalink / raw)
  To: ofono

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

Hi Mylene,

On 12/24/2014 08:39 AM, Mylene JOSSERAND wrote:
> Hi everyone,
>
>
> I am doing some tests with Ofono.
> Currently, I am trying to see if Ofono can handle an automatic data
> reconnection in case of signal loss.
>
> I am doing the following test :
> - Connect the modem to data connection via atmodem driver (so PPP link)
> - Disconnect the antenna to lose signal
> - Reconnect the antenna to get signal back
> - Try to get data connection back
>
> The atmodem driver is notified that the signal is lost so it disconnects
> ppp with "gprs-context.c:ppp_disconnect() Reason: 6".
> After re-connecting the antenna and that the network is back, in the
> Ofono interfaces, it did not changed, I always have the
> ConnectionManager interface. The difference is that the context is not
> activated. So, I try to re-activate it but it failed with error :
>
> gprs.c:pri_activate_callback() Activating context failed with error:
> Unknown error type
>
> I guess that someone should have test it before me. If it is the case,
> is there something I am doing wrong ? I do not know how Ofono should
> react in this case. Maybe it should remove some interfaces ? Go in
> "offline" mode ?
> If nobody tested it before, what should I look for ?
>
>

The modem is still in 'radio turned on' mode, e.g. online.  So as far as 
oFono is concerned, nothing has changed.

As to why your context activation fails, who knows.  oFono simply sends 
the command to the modem.  If the modem responds with an error, then you 
need to figure out why that happens.

Regards,
-Denis

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

* Re: [help] automatic data reconnection in case of signal loss
  2014-12-24 18:38 ` Denis Kenzior
@ 2015-01-06 11:50   ` Mylene JOSSERAND
  0 siblings, 0 replies; 3+ messages in thread
From: Mylene JOSSERAND @ 2015-01-06 11:50 UTC (permalink / raw)
  To: ofono

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

Hi Denis,

First of all, happy new year 2015.


On 12/24/2014 07:38 PM, Denis Kenzior wrote:
>
> The modem is still in 'radio turned on' mode, e.g. online.  So as far 
> as oFono is concerned, nothing has changed.
> As to why your context activation fails, who knows.  oFono simply 
> sends the command to the modem.  If the modem responds with an error, 
> then you need to figure out why that happens.


Thank you for your answer and the hint. I will search deeper why it is 
failing with my modem.


Best regards,

Mylène

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

end of thread, other threads:[~2015-01-06 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-24 14:39 [help] automatic data reconnection in case of signal loss Mylene JOSSERAND
2014-12-24 18:38 ` Denis Kenzior
2015-01-06 11:50   ` Mylene JOSSERAND

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.