From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 7/8] Add AT driver for STK atom.
Date: Thu, 15 Apr 2010 16:48:10 -0500 [thread overview]
Message-ID: <201004151648.11027.denkenz@gmail.com> (raw)
In-Reply-To: <1270795800-7273-1-git-send-email-andrew.zaborowski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
Hi Andrew,
> ---
> Makefile.am | 1 +
> drivers/atmodem/atmodem.c | 2 +
> drivers/atmodem/atmodem.h | 3 +
> drivers/atmodem/stk.c | 258
> +++++++++++++++++++++++++++++++++++++++++++++ plugins/atgen.c |
> 2 +
> plugins/phonesim.c | 3 +
> 6 files changed, 269 insertions(+), 0 deletions(-)
> create mode 100644 drivers/atmodem/stk.c
I did apply the patch, however I have a question:
The terminal response goes something like this:
> +
> + len = sprintf(buf, "AT+CSIM=%i,A0140000%02hhX",
> + 10 + length * 2, length);
> +
> + for (; length; length--)
> + len += sprintf(buf + len, "%02hhX", *value++);
> +
In the new stk envelope code it goes something like this:
>
> + len = sprintf(buf, "AT+CSIM=%i,A0C20000%02hhX",
> + 12 + length * 2, length);
> +
> + for (; length; length--)
> + len += sprintf(buf + len, "%02hhX", *command++);
> +
> + len += sprintf(buf + len, "FF");
What is the point of this last 'FF'? The code removed from the sim atom
driver doesn't have it either...
Regards,
-Denis
next prev parent reply other threads:[~2010-04-15 21:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 6:50 [PATCH 7/8] Add AT driver for STK atom Andrzej Zaborowski
2010-04-15 21:48 ` Denis Kenzior [this message]
2010-04-20 19:33 ` Andrzej Zaborowski
2010-04-20 20:21 ` Denis Kenzior
2010-04-20 20:48 ` Andrzej Zaborowski
2010-04-20 20:55 ` Denis Kenzior
2010-04-20 21:03 ` andrzej zaborowski
2010-04-20 21:32 ` 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=201004151648.11027.denkenz@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