All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Adding New contact failed in Ofono
Date: Sun, 15 May 2011 21:27:03 -0500	[thread overview]
Message-ID: <4DD08B77.6050505@gmail.com> (raw)
In-Reply-To: <BANLkTi=v=FFGF5n7m28Z+pj8J2pHr8jAcw@mail.gmail.com>

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

Hi Yuvi,

On 05/16/2011 02:28 AM, Yuvaraj Ragupathi wrote:
> Hi All,
> 
> I am trying to add new contact in sim via following sample code
> 
> 
> static  int new_contact(struct ofono_phonebook *pb,char
> *num,ofono_phonebook_cb_t cb)
> {
>     struct pb_data *pbd = ofono_phonebook_get_data(pb);
>     char cmd[50];int return_value;
>         sprintf(cmd,"AT+CPBW=10,%s,129,Testing", num);
>         printf("Command is %s\n",cmd);
>     return_value=g_at_chat_send(pbd->chat,cmd, none_prefix,
>                        NULL,NULL, NULL);
>         printf("Add New contact number in Sim\n Status is
> %d\n",return_value);
>         return return_value;
> }
> 

oFono core does not support adding new contacts to the sim and there are
no plans to do so.  So I'm not quite sure what you're trying to
accomplish here in the first place.  If your question is about using
GAtChat, then adjust your subject accordingly.

> 
> If i try to add new contact  my Return status is  69 or 70
> 

Your 'return status' is just an ID assigned by GAtChat.  GAtChat is
_asynchronous_, your command has not been executed yet.  If you want to
know the result of the operation, provide a proper callback, or at the
very least enable AT debug logging.  See HACKING for details.

Regards,
-Denis

  reply	other threads:[~2011-05-16  2:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16  7:28 Adding New contact failed in Ofono Yuvaraj Ragupathi
2011-05-16  2:27 ` Denis Kenzior [this message]
2011-05-17  5:54   ` Yuvaraj Ragupathi
2011-05-17  6:33     ` Marcel Holtmann
2011-05-16  8:17 ` Aygon, Bertrand
2011-05-16  8:27 ` Jeevaka Prabu Badrappan
2011-05-16  8:58   ` Yuvaraj Ragupathi
2011-05-16  9:02     ` Aygon, Bertrand

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=4DD08B77.6050505@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.