From: Kalle Valo <kalle.valo@canonical.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/3] atmodem: add a huawei hack to check attachment status
Date: Mon, 26 Apr 2010 13:44:00 +0300 [thread overview]
Message-ID: <87hbmysdcf.fsf@potku.valot.fi> (raw)
In-Reply-To: <201004231050.34095.denkenz@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]
Denis Kenzior <denkenz@gmail.com> writes:
>> > shouldn't be polling AT+CGREG? the better way to do this?
>>
>> Most probably, I'll try with that command and test how it goes.
>>
>> But is polling acceptable way to do this? And is there anything else I
>> could do except poll? I'm open to all suggestions.
>>
>
> These devices are sometimes quite weird, especially if they have multiple
> ports. Sometimes unsolicited notifications are not sent to a particular port,
> and that port is for control only. This could be the case here...
Bingo! I did some testing with cgatt and saw this on the third serial
interface:
^BOOT:38645652,0,0,0,87
^RSSI:18
+CGREG: 0,00,0
^RSSI:18
^RSSI:18
^RSSI:18
^RSSI:15
+CGREG: 1,5AA,5578
^RSSI:18
I'll cook up something to use this.
--
Kalle Valo
next prev parent reply other threads:[~2010-04-26 10:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 13:40 [PATCH 0/3] Huawei E1552 hacks Kalle Valo
2010-04-23 13:40 ` [PATCH 1/3] atmodem: add signal strength support for huawei Kalle Valo
2010-04-23 14:22 ` Marcel Holtmann
2010-04-23 15:40 ` Kalle Valo
2010-04-23 15:53 ` Denis Kenzior
2010-04-26 10:45 ` Kalle Valo
2010-04-23 13:40 ` [PATCH 2/3] atmodem: add a huawei hack to check attachment status Kalle Valo
2010-04-23 14:24 ` Marcel Holtmann
2010-04-23 15:43 ` Kalle Valo
2010-04-23 15:50 ` Denis Kenzior
2010-04-26 10:44 ` Kalle Valo [this message]
2010-04-23 13:40 ` [PATCH 3/3] huawei: add gprs context Kalle Valo
2010-04-23 14:26 ` Marcel Holtmann
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=87hbmysdcf.fsf@potku.valot.fi \
--to=kalle.valo@canonical.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.