All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yorn <yorn@gmx.net>
To: ofono@ofono.org
Subject: Re: Ublox Toby Modem
Date: Fri, 22 Apr 2016 13:51:35 +0200	[thread overview]
Message-ID: <571A1047.4040507@gmx.net> (raw)
In-Reply-To: <5719FBB2.90606@endocode.com>

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

Hi Dragos,

many thanks for all the effort! Comments inline:

Am 22.04.2016 um 12:23 schrieb Dragos Tatulea:
> Hi Yorn,
>
> On 04/21/2016 08:37 PM, Yorn wrote:
>> Hi Dragos
>>
>> Am 21.04.2016 um 11:03 schrieb Dragos Tatulea:
>>> Hi Yarn,
>>>
>>> On 04/20/2016 07:54 PM, Yorn wrote:
>>>> Hi Dragos,
>>>>
>>>> logs + comments inline
>>>>
>>>> Am 20.04.2016 um 17:01 schrieb Dragos Tatulea:
>>>>> Hi Yorn,
>>>>>
>>>>> On 04/20/2016 04:24 PM, Yorn wrote:
>>>>>> Hi Dragos,
>>>>>>
>>>>>> it is still active=0 :(
>>>>>>
>>>>>> root(a)colibri-vf:~/test# ./list-contexts
>>>>>> [ /ublox_0 ]
>>>>>>        [ /ublox_0/context1 ]
>>>>>>            Username =
>>>>>>            AuthenticationMethod = chap
>>>>>>            Protocol = ip
>>>>>>            Name = Internet
>>>>>>            Settings = { }
>>>>>>            IPv6.Settings = { }
>>>>>>            Active = 0
>>>>>>            AccessPointName =
>>>>>>            Password =
>>>>>>            Type = internet
>>>>>>
>>>>> Can you run only oFono (no connman) with OFONO_AT_DEBUG env variable set
>>>>> and run the following scripts:
>>>>>
>>>>> enable-modem
>>>>> online-modem
>>>>> activate-context
>>>>>
>>>>> Then send the logs.
>>>> Here they are [1]
>> I am actually a bit lost in the ublox AT Commands manual..
>>
>> Do you have a chance to see something at the ofonod+AT logs with your expertice!?
>>
> oFono was able to register on the network an activate the context. This
> part is interesting for you:
>
> ofonod[369]: drivers/ubloxmodem/gprs-context.c:ublox_gprs_activate_primary() cid 1
> ofonod[369]: Aux: > AT\r
> ofonod[369]: Aux: < \r\nOK\r\n
> ofonod[369]: Aux: Finally woke up the modem
> ofonod[369]: Aux: > AT+CGDCONT=1,"IP","m2m.tele2.com"\r
> *> context defined
>
> ofonod[369]: Aux: < \r\nOK\r\n
> ofonod[369]: drivers/ubloxmodem/gprs-context.c:cgdcont_cb() ok 1
> ofonod[369]: Aux: > AT+CGACT=1,1\r
> *> context activated
>
> ofonod[369]: Aux: < \r\nOK\r\n
> ofonod[369]: drivers/ubloxmodem/gprs-context.c:cgact_enable_cb() ok 1
> ofonod[369]: Aux: > AT+CGCONTRDP=1\r
> ofonod[369]: Aux: < \r\n+CREG: 5,"0000","00000010",4\r\n\r\n+CGEV: ME PDN ACT 1\r\n
> ofonod[369]: src/network.c:ofono_netreg_status_notify() /ublox_0 status 5 tech 4
> ofonod[369]: src/gprs.c:netreg_status_changed() 5
> ofonod[369]: src/gprs.c:gprs_netreg_update() attach: 1, driver_attached: 1
> ofonod[369]: Aux: < \r\n+CGCONTRDP: 1,0,"m2m.tele2.com","
> ofonod[369]: Aux: < 100.98.55.207.255.255.255.255","100.98.55.207","130.244.127.161","130.244.127.169","0.0.0.0","0.0.0.0",0\r\n
> ofonod[369]: Aux: < \r\nOK\r\n
> *> connection properties read successfully
>
> ofonod[369]: drivers/ubloxmodem/gprs-context.c:cgcontrdp_cb() ok 1
> ofonod[369]: src/modem.c:get_modem_property() modem 0x192a900 property NetworkInterface
>
>> The connman cellular service is set to "a" (association) from starting
>> connect cellular_240075810199181_context1
>> up until timeout.
>>
> Do you still run the oFono scripts? From the logs it looks like connman
> is trying to activate an already active context.
The technologie and the service is running, but the association does not 
end successfully. Do I need to set something else in connman? Where do I 
have to look?

The try to connect ends up with:
Error /net/connman/service/cellular_240075810199181_context1: Did not 
receive a reply. Possible causes include: the remote application did not 
send a reply, the message bus security policy blocked the reply, the 
reply timeout expired, or the network connection was broken.


>
>
> As a side note, oFono and ConnMan have persistent states for services and
> contexts. They are stored under /var/lib/ofono|connman. When debugging I
> found it useful sometimes to start with a clean state.
>
> Thanks


  reply	other threads:[~2016-04-22 11:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <57178134.7070200@endocode.com>
2016-04-20 14:11 ` Ublox Toby Modem Yorn
2016-04-20 14:18   ` Dragos Tatulea
2016-04-20 14:24     ` Yorn
2016-04-20 15:01       ` Dragos Tatulea
2016-04-20 17:54         ` Yorn
2016-04-21  9:03           ` Dragos Tatulea
2016-04-21 10:06             ` Yorn
2016-04-21 18:37             ` Yorn
2016-04-22 10:23               ` Dragos Tatulea
2016-04-22 11:51                 ` Yorn [this message]
2016-04-22 15:36                   ` Dragos Tatulea
2016-04-24 13:03                     ` Yorn
2016-04-20 15:02       ` Denis Kenzior
2016-04-20 16:34         ` Yorn

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=571A1047.4040507@gmx.net \
    --to=yorn@gmx.net \
    --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.