All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Bonn <jonas@norrbonn.se>
To: ofono@ofono.org
Subject: Re: Unsalble cellular connection
Date: Tue, 13 Aug 2019 08:42:52 +0200	[thread overview]
Message-ID: <a3d7b41d-173f-d334-9b7d-cabef2e89de6@norrbonn.se> (raw)
In-Reply-To: <CAA=hcWQFVYG_hqhDf--Vu2L-KN6z9nOU_Vb93eEewoaw7opPwg@mail.gmail.com>

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

Hi JH,

On 13/08/2019 00:09, JH wrote:
> Hi Jonas,
> 
> Do you have any comments about it?

Sure... there's not much to go on in the logs you've posted, just an 
assertion that the LTE connection was silently dropped.  It would be 
better if you could show the behaviour with more complete debug output:

ofonod -d

The issue could be (perhaps) that there's a QMI message that ofono 
doesn't handle and is silently ignoring... dumping the QMI communication 
might useful:

OFONO_QMI_DEBUG=1 ofonod -d


> 
> Thank you.
> 
> Kind regards,
> 
> - jupiter
> 
> On 8/12/19, JH <jupiter.hce@gmail.com> wrote:
>> Hi Giacinto,
>>
>> On 8/11/19, Giacinto Cifelli <gciofono@gmail.com> wrote:
>>
>>> can you check with the ofono script test/list-contexts if the method
>>> is static or dhcp?
>>
>> # ofono/test/list-contexts
>> [ /ubloxqmi_0 ]
>>      [ /ubloxqmi_0/context1 ]
>>          Name = Internet
>>          Type = internet
>>          AuthenticationMethod = chap
>>          Settings = { Method=static Gateway=10.116.103.22
>> Netmask=255.255.255.25}

No Address?  No Interface?  Running ofono with debug output will 
probably shed some light on what's going on here.

>>          Username =
>>          AccessPointName = telstra.m2m
>>          Password =
>>          Protocol = ip
>>          IPv6.Settings = { }
>>          Active = 1
>>
>> Looks like it is static, how can change it to a correct one (dynamic
>>> )? Or any workarounds?

static is correct.  ofono configures the local network interface 
appropriately for the established context.

Given that ofono isn't reporting either an address nor interface above, 
I wonder what the network interface has been configured to.  What do 'ip 
link' and 'ip addr' show?


>>
>>> I believe this can be the problem: if ofono managed to get an IP
>>> address, likely with at+cgpaddr and/or at+cgcontrdp,
>>> then it passes it to connman, and then it is set on the interface...
>>> static, with no lease expiration.

I don't think the SARA R4 support DHCP... correct me if I'm wrong.


>>
>> There are two devices for the SARA-R4 modem, /dev/ttyUSB0 is used for
>> QMI which is currently using as default protocol. /dev/ttyUSB1 is for
>> AT,

No, the QMI device is another USB endpoint that presents interfaces in 
two separate Linux subsystems:  one network device and one qmimisc 
device.  The ttyUSB devices are for AT functionality which you won't be 
using if you are using the QMI channel.


  let me know if you like to check AT command, I have never tried to
>> write / read AT command, are the following commands correct?
>>
>> echo "at+cgpaddr" > /dev/ttyUSB1
>> cat < /dev/ttyUSB1

Try using minicom or something similar if you want to play with AT 
commands directly.

/Jonas

>>
>> Thank you very much Giacinto.
>>
>> -- jupiter
>>

  reply	other threads:[~2019-08-13  6:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 11:01 Unsalble cellular connection JH
2019-08-01 18:16 ` Giacinto Cifelli
2019-08-02 10:46   ` JH
2019-08-02 17:43     ` Giacinto Cifelli
2019-08-07 10:27       ` JH
2019-08-09  3:59         ` Giacinto Cifelli
2019-08-09 12:56           ` JH
2019-08-11 11:57             ` JH
2019-08-11 13:37               ` Giacinto Cifelli
2019-08-12  6:54                 ` JH
2019-08-12 22:09                   ` JH
2019-08-13  6:42                     ` Jonas Bonn [this message]
     [not found] <CAA=hcWSVcULFW4jo5q9RsxW4igozgM99oJN6KoZ8UaSLdLhD7g@mail.gmail.com>
2019-08-13 15:00 ` Jonas Bonn
2019-08-14 11:11   ` JH
2019-08-14 13:00     ` Jonas Bonn
2019-08-15 11:33       ` Daniel Wagner
2019-08-15 12:45       ` JH
2019-08-15 14:58         ` Daniel Wagner
2019-08-17 11:53           ` JH
2019-08-17 11:55             ` JH
2019-08-17 14:09               ` Jonas Bonn
2019-08-17 22:29                 ` JH
     [not found] <CAOf5uw=2U6MkcKP8OzWNyzwvxjAvYLdXuDASFVEjnWvMQ0fjHw@mail.gmail.com>
2019-08-19  1:51 ` JH
2019-08-19  5:38   ` Jonas Bonn
2019-08-19 14:18     ` JH
     [not found] <CAOf5uw=6hQkfhAt=OWH+mim30NyOHU6Z8GVMJ6yKCEf=1NFw8w@mail.gmail.com>
2019-08-19  7:50 ` Jonas Bonn
2019-08-19  7:56   ` Jonas Bonn
     [not found] <CAOf5uw=fQe4cuTfdciqW3hmXHXv-tY2UYd4aLfMVxF5Lx65jbw@mail.gmail.com>
2019-08-19  8:17 ` Jonas Bonn

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=a3d7b41d-173f-d334-9b7d-cabef2e89de6@norrbonn.se \
    --to=jonas@norrbonn.se \
    --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.