Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] telit: sim status notification without polling
Date: Tue, 28 Aug 2012 09:53:29 -0500	[thread overview]
Message-ID: <503CDB69.5040705@gmail.com> (raw)
In-Reply-To: <503CE18A.9060300@hale.at>

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

Hi Christopher,

On 08/28/2012 10:19 AM, Christopher Vogl wrote:
> Hi Denis,
>
> On 23/08/12 19:37, Denis Kenzior wrote:
>> Hi Christopher,
>>
>>>> Also, one other thing I'm concerned about is the CFUN=4 usage when we
>>>> try to set the modem offline. Your comments indicate that the Telit
>>>> modem resets the SIM when we issue CFUN=4. Going from Online True ->
>>>> False we don't actually want to reset the SIM. Does CFUN take an extra
>>>> parameter to turn SIM reset off by any chance?
>>>
>>> Telit documentation says that +CFUN supports a second parameter which
>>> should turn reset off.
>>> AT+CFUN=? also returns +CFUN: (0,1,2,4,5),(0)
>>> AT reference manual: "reset flag 0 - do not reset the ME before setting
>>> it to <fun> functionality level"
>>>
>>> But the modem keeps returning +CME ERROR: 4 when I try it (no matter
>>> which CFUN level).
>>
>> That is funny. Maybe the modem does not support a true 'offline' or
>> 'airplane' mode. In which case the driver might need to be modified
>> somewhat.
>>
>> This is something we will need to solve in the future. If not fixed,
>> I'm guessing that going Online then Offline will reset the SIM and
>> cause all kinds of funny behavior.
>>
>>>
>>> The modem behaves very strange sometimes. I kept getting timeouts when
>>> setting AT+CFUN=4. I once tried it manually and it took 26 seconds until
>>> I got an OK.
>>> Currently it works fine again.
>>>
>>
>> Is there a newer firmware available by any chance?
>
> Telit support was so kind to send me a firmware version (08.01.108-B006)
> which supports +CFUN without resetting.
> I suppose this is not an official version yet and if I adapt the code in
> the telit plugin I will probably be the only one who can use it.
> Is it ok if I send a corrected version of this patch and change the
> offline/online mode handling in a further patch when it is sure
> supported by an official firmware version?
>

Just send it in, their official docs do mention the reset parameter, so 
if the modem rejects it then that is a firmware bug.  The end-user will 
have to upgrade the firmware in that case.

Regards,
-Denis

  reply	other threads:[~2012-08-28 14:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 13:16 [PATCH 1/8] telit: notify sim inserted when sim ready Christopher Vogl
2012-08-13 13:23 ` Denis Kenzior
2012-08-20 14:34   ` Christopher Vogl
2012-08-20 14:50     ` Denis Kenzior
2012-08-20 15:20       ` Christopher Vogl
2012-08-20 15:42         ` Denis Kenzior
2012-08-22 14:24           ` [PATCH] sim: return from CPIN when SIM unlocked for telit Christopher Vogl
2012-08-22 14:24             ` [PATCH] telit: sim status notification without polling Christopher Vogl
2012-08-23 14:21               ` Denis Kenzior
2012-08-23 16:00                 ` Christopher Vogl
2012-08-23 17:37                   ` Denis Kenzior
2012-08-24 10:26                     ` Christopher Vogl
2012-08-28 15:19                     ` Christopher Vogl
2012-08-28 14:53                       ` Denis Kenzior [this message]
2012-08-29 15:01                         ` [PATCH] telit: enable extended sim status notification Christopher Vogl
2012-08-30 14:46                           ` Denis Kenzior
2012-08-22 23:44             ` [PATCH] sim: return from CPIN when SIM unlocked for telit 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=503CDB69.5040705@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