All of lore.kernel.org
 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: Mon, 11 Jan 2016 11:18:12 -0600	[thread overview]
Message-ID: <5693E3D4.2060804@gmail.com> (raw)
In-Reply-To: <CADnUhn0c1g7zu2aORxRZzyRK2tkGvZw0PugFvgV2WUWy4V5NGg@mail.gmail.com>

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

Hi Matti,

On 01/11/2016 09:02 AM, matti kaasinen wrote:
> Denis,
> I noticed from the logs that 'net' should have been probed by
> huawei_cdc_ncm module instead of plain cdc_ncm. I managed getting sysfs
> lines after "net finished" line in ofonod log after changing cdc_ncm to
> huawei_cdc_ncm (below):
> ..plugins/udev.c:udev_event() subsystem net finished
> ..plugins/udevng.c:check_usb_device() huawei_cdc_ncm [12d1:1506]
> ..plugins/udevng.c:add_device()
> /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1
> ..plugins/udevng.c:add_device()
> /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.1/net/wwan0
> ..plugins/udevng.c:add_device() wwan0 (huawei) 255/2/22  ==> (null) (null)
>
>
> I also got net record from setup_huawei() printout:
> ..plugins/udevng.c:setup_huawei() mdm=/dev/ttyUSB0 pcui=/dev/ttyUSB2
> diag=/dev/ttyUSB1 qmi=(null) net=wwan0
>

So looks like your device is detected properly now.

>
> Now this process proceeded further providing printout from
> provision_get_settings():
> ..plugins/provision.c:provision_get_settings() Provisioning for MCC 244,
> MNC 05, SPN 'elisa'
> ..plugins/provision.c:provision_get_settings() Found 1 APs
> ..plugins/provision.c:provision_get_settings() Name: '(null)'
> ..plugins/provision.c:provision_get_settings() APN: 'internet'
> ..plugins/provision.c:provision_get_settings() Type:
> OFONO_GPRS_CONTEXT_TYPE_INTERNET
> ..plugins/provision.c:provision_get_settings() Username: '(null)'
> ..plugins/provision.c:provision_get_settings() Password: '(null)'
>

And at least reading EFspn from the SIM works. So provisioning succeeds.

>
> After that came some errors:
> ..src/sim.c:ofono_sim_remove_spn_watch() 0x11cf60
> ofonod: PCUI: > AT+CPBS=?\r
> ofonod: PCUI: < \r\n+CME ERROR: 14\r\n
> ofonod: PCUI: > AT+CPBS=?\r
> ofonod: PCUI: < \r\n+CME ERROR: 14\r\n
> ofonod: PCUI: > AT+CPBS=?\r
> ofonod: PCUI: < \r\n+CPBS: ("SM","EN","ON")\r\n\r\nOK\r\n

This is a separate issue.  The phonebook is not ready for reading. 
Shouldn't affect data connections though...

>
> I did not see any progress on connman side.
>
> Modifications in plugins/udevng.c
> vendor_list[]:
>      { "huawei",    "huawei_cdc_ncm",    "12d1"        },
>
> setup_huawei():
>                  g_strcmp0(info->interface, "255/2/22") == 0 ||
>                  g_strcmp0(info->interface, "255/1/56") == 0) {
>              net = info->devnode;
>

Feel free to send a patch for this.

>
> Where should I look next?
> I could provide full log, but I am not sure if attachments/messages with
> attachments pass through.

What does list-contexts show?  Can you do test/online-modem and 
test/activate-context, test/process-context-settings?

The logs should show up fine.

Regards,
-Denis

  reply	other threads:[~2016-01-11 17:18 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 [this message]
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
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=5693E3D4.2060804@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 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.