Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: Huawei EM 770 not working properly
Date: Thu, 04 Nov 2010 13:17:41 +0100	[thread overview]
Message-ID: <1288873061.9615.90.camel@aeonflux> (raw)
In-Reply-To: <1288869292.10276.10.camel@par-r81vxc7.par.novell.com>

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

Hi Frederic,

> I'm trying to get ofono working properly with integrated 3G card on my
> EEE PC.
> 
> Card is Huawei EM 770 (12d1:1001).
> 
> I'm testing with ofono 0.34.
> 
> so far, the modem is correctly detected :
> 
> list-modem returns :
> [ /huawei0 ]
>  Features = sim
>  Powered = 1
>  Interfaces = org.ofono.SimManager
>  Online = 0
>  Model = EM770
>  Manufacturer = huawei
>  Serial = ....
>  Revision = 11.104.16.12.00
>  [ org.ofono.SimManager ] 
>   Present = 0
> 
> And trying to put it "online" using online-modem returns
> "org.ofono.Error.NotAvailable"
> 
> Logs are as follow :
> 
> ofonod[1493]: plugins/bluetooth.c:manager_properties_cb() 
> ofonod[1493]: plugins/bluetooth.c:parse_adapters() 
> ofonod[1493]: plugins/bluetooth.c:parse_adapters() Calling GetProperties
> on /org/bluez/465/hci0
> ofonod[1493]: plugins/bluetooth.c:parse_devices() 
> ofonod[1493]: plugins/bluetooth.c:adapter_properties_cb() Adapter
> Address: 00:25:D3:A2:D1:09, Path: /org/bluez/465/hci0
> ofonod[1493]: plugins/huawei.c:huawei_enable() 0x941b210
> ofonod[1493]: plugins/huawei.c:open_device() Modem /dev/ttyUSB0
> ofonod[1493]: plugins/huawei.c:open_device() Pcui /dev/ttyUSB2
> ofonod[1493]: plugins/huawei.c:query_sim_state() 
> ofonod[1493]: PCUI: > ATE0 +CMEE=1\r
> ofonod[1493]: PCUI: < \r\nOK\r\n
> ofonod[1493]: PCUI: > AT+CFUN=1\r
> ofonod[1493]: PCUI: < \r\nOK\r\n
> ofonod[1493]: plugins/huawei.c:cfun_enable() 
> ofonod[1493]: PCUI: > AT^SYSINFO\r
> ofonod[1493]: PCUI: < \r\n^SYSINFO:0,0,0,0,0,,0\r\n\r\nOK\r\n
> ofonod[1493]: plugins/huawei.c:notify_sim_state() 0
> ofonod[1493]: plugins/huawei.c:huawei_pre_sim() 0x941b210
> ofonod[1493]: plugins/huawei.c:query_sim_state() 
> ofonod[1493]: PCUI: > AT^U2DIAG?\r
> ofonod[1493]: PCUI: < \r\nERROR\r\n
> ofonod[1493]: PCUI: > AT^GETPORTMODE\r
> ofonod[1493]: PCUI: < \r\nCOMMAND NOT SUPPORT\r\n
> ofonod[1493]: PCUI: > AT^USSDMODE=?\r
> ofonod[1493]: PCUI: < \r\nCOMMAND NOT SUPPORT\r\n
> ofonod[1493]: PCUI: > AT^CVOICE=?\r
> ofonod[1493]: PCUI: < \r\n^CVOICE:(1)\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: > AT^SYSINFO\r
> ofonod[1493]: PCUI: < \r\n^SYSINFO:0,0,0,0,0,,0\r\n\r\nOK\r\n
> ofonod[1493]: plugins/huawei.c:notify_sim_state() 0
> ofonod[1493]: PCUI: > AT+CGMI\r
> ofonod[1493]: PCUI: < \r\nhuawei\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: > AT^CVOICE?\r
> ofonod[1493]: PCUI: < \r\n^CVOICE:1\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: > AT+CGMM\r
> ofonod[1493]: PCUI: < \r\nEM770\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: > AT+CGMR\r
> ofonod[1493]: PCUI: < \r\n11.104.16.12.00\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: > AT+CGSN\r
> ofonod[1493]: PCUI: < \r\n355093024527802\r\n\r\nOK\r\n
> ofonod[1493]: PCUI: < \r\n^RSSI:23\r\n\r\n^SRVST:1\r\n\r\n^MODE:5,4\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> ofonod[1493]: PCUI: < \r\n^BOOT:24527802,0,0,0,24\r\n
> 
> Any idea ?

how long did you wait here? Sometimes the Huawei firmware needs a long
time to detect if the SIM card is actually ready.

Also it could be that the SIM card detection is broken with EM770. I
would need to dig though the manual again.

So the ^SRVST:1 means we are in Restricted Service mode. Whatever that
actually means.

The ^MODE:5,4 means we are in WCDMA mode (UMTS) without HSPA.

So what I am missing is a ^SIMST notification telling us about the
current SIM state. So it could be that this firmware just does not send
one at all. So we might have to query AT+CPIN to figure out if the SIM
card is indeed ready.

Or the CFUN handling in this firmware is broken. I have one of these
cards where it is the case as well. Behaves really wrongly, but I have
had no time to look into it.

Regards

Marcel



  reply	other threads:[~2010-11-04 12:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 11:14 Huawei EM 770 not working properly Frederic Crozat
2010-11-04 12:17 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-11-04 11:15 Frederic Crozat
2010-11-04 14:16 ` Denis Kenzior
2010-11-04 14:40 Frederic Crozat

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=1288873061.9615.90.camel@aeonflux \
    --to=marcel@holtmann.org \
    --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