Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Huawei 3131 with idVendor=12d1, idProduct=14fe
Date: Thu, 14 Jan 2016 09:32:32 -0600	[thread overview]
Message-ID: <5697BF90.8020806@gmail.com> (raw)
In-Reply-To: <CADnUhn1YRsmCn99A1aRYHwWM3uJQTY6hnrx4XmD3uEMwHXybpw@mail.gmail.com>

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

Hi Matti,


..drivers/huaweimodem/gprs-context.c:huawei_gprs_activate_primary() cid 1
ofonod: Modem: > AT+CGDCONT=1,"IP","internet"\r
ofonod: Modem: < \r\nOK\r\n
..drivers/huaweimodem/gprs-context.c:at_cgdcont_cb() ok 1
ofonod: Modem: > AT^NDISDUP=1,1\r
ofonod: Modem: < \r\nOK\r\n

----> Activating NDIS interface seems to be okay

..drivers/huaweimodem/gprs-context.c:at_ndisdup_up_cb() ok 1
ofonod: Modem: > AT^DHCP?\r
ofonod: Modem: < \r\nOK\r\n

----> This is where we fail.  For some reason the firmware returns an 
empty result with an 'OK' here.  This is something the gprs-context 
driver isn't expecting.  See drivers/huaweimodem/gprs-context.c 
dhcp_query_cb():

         if (g_at_result_iter_next(&iter, "^DHCP:") == FALSE)
                 return;

Can you try activating the polling logic in this case as well.  E.g. by 
changing that chunk to read:

if (g_at_result_iter_next(&iter, "^DHCP:") == FALSE) {
	gcd->dhcp_source = g_timeout_add_seconds(1, dhcp_poll, gc);
	return;
}

Regards,
-Denis

  reply	other threads:[~2016-01-14 15:32 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADnUhn1efXRB7fZGkSfsToHH5gxd-tK4OxJxF9MhP334P1Pvcw@mail.gmail.com>
2016-01-11 15:02 ` Huawei 3131 with idVendor=12d1, idProduct=14fe matti kaasinen
2016-01-11 17:18   ` Denis Kenzior
2016-01-11 17:52     ` matti kaasinen
2016-01-12  8:38       ` matti kaasinen
2016-01-12  8:47         ` matti kaasinen
2016-01-12  9:40           ` matti kaasinen
2016-01-12 10:04             ` matti kaasinen
2016-01-12 16:30         ` Denis Kenzior
2016-01-12 16:46           ` matti kaasinen
2016-01-12 16:52             ` Denis Kenzior
2016-01-12 16:56             ` matti kaasinen
2016-01-12 17:20               ` Denis Kenzior
2016-01-13 10:40                 ` matti kaasinen
2016-01-13 16:04                   ` Denis Kenzior
2016-01-14 10:19                     ` matti kaasinen
2016-01-14 15:32                       ` Denis Kenzior [this message]
2016-01-14 15:53                         ` matti kaasinen
2016-01-14 15:55                           ` Denis Kenzior
2016-01-15 10:14                         ` matti kaasinen
2016-01-20 14:47                           ` matti kaasinen
2016-01-20 15:25                             ` =?unknown-8bit?q?Bj=C3=B8rn?= Mork
2016-01-20 17:20                               ` matti kaasinen
2016-01-21  8:05                                 ` matti kaasinen
2016-01-23 20:32                                   ` CedrIc Jehasse
2016-02-24 14:49                                     ` matti kaasinen
2016-01-21 12:56                                 ` matti kaasinen
2016-01-12 19:08             ` =?unknown-8bit?q?Bj=C3=B8rn?= Mork
2016-01-13 16:08               ` Denis Kenzior
2015-12-30 10:31 matti kaasinen
2015-12-31  8:39 ` matti kaasinen
2016-01-04 16:18 ` Denis Kenzior

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=5697BF90.8020806@gmail.com \
    --to=denkenz@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox